get_generics function

Get generics