Add a get_all_generic_methods_metadata function to ncf.py