def makeApiInfoFromParamSpecs(self,
                               api_name,
                               param_names,
                               input_specs,
                               attr_specs,
                               defaults=()):
     """Returns a PythonAPIParameterConverter built from the given specs."""
     api_info = _pywrap_python_api_info.PythonAPIInfo(api_name)
     api_info.InitializeFromParamSpecs(input_specs, attr_specs, param_names,
                                       defaults)
     return api_info
 def makeApiInfoForGenOp(self, op_name, op_func):
     """Returns a PythonAPIParameterConverter for the given gen_op."""
     api_info = _pywrap_python_api_info.PythonAPIInfo(op_name)
     api_info.InitializeFromRegisteredOp(op_name)
     return api_info