class_docstr: This class can create a struct of PyTensor types (like `TensorType`, etc.)
  to be used as a convenience `Op` parameter wrapping many data.
  
  `ParamsType` constructor takes key-value args.  Key will be the name of the
  attribute in the struct.  Value is the PyTensor type of this attribute,
  ie. an instance of (a subclass of) :class:`CType`
  (eg. ``TensorType('int64', (None,))``).
  
  In a Python code any attribute named ``key`` will be available via::
  
      structObject.key
  
  In a C code, any attribute named ``key`` will be available via:
  
  .. code-block:: c
  
      structObject->key;
  
  .. note::
  
      This `Type` is not complete and should never be used for regular graph
      operations.
class_docstr_tok: ["This","class","can","create","a","struct","of","PyTensor","types","(","like","`","TensorType","`",",","etc",".",")","to","be","used","as","a","convenience","`","Op","`","parameter","wrapping","many","data",".","`","ParamsType","`","constructor","takes","key-value","args",".","Key","will","be","the","name","of","the","attribute","in","the","struct",".","Value","is","the","PyTensor","type","of","this","attribute",",","ie",".","an","instance","of","(","a","subclass","of",")",":","class",":","`","CType","`","(","eg",".","``","TensorType","(","'int64","'",",","(","None",",",")",")","``",")",".","In","a","Python","code","any","attribute","named","``","key","``","will","be","available","via",":",":","structObject.key","In","a","C","code",",","any","attribute","named","``","key","``","will","be","available","via",":","..","code-block",":",":","c","structObject-",">","key",";","..","note",":",":","This","`","Type","`","is","not","complete","and","should","never","be","used","for","regular","graph","operations","."]
docstr: Return the name (string) of the first field associated to
  the given PyTensor type. Fields are sorted in lexicographic
  order. Raise an exception if this PyTensor type is not
  in the current ParamsType.
  
  This method is intended to be used to retrieve a field name
  when we know that current ParamsType contains the given
  PyTensor type only once.
docstr_tok: ["Return","the","name","(","string",")","of","the","first","field","associated","to","the","given","PyTensor","type",".","Fields","are","sorted","in","lexicographic","order",".","Raise","an","exception","if","this","PyTensor","type","is","not","in","the","current","ParamsType",".","This","method","is","intended","to","be","used","to","retrieve","a","field","name","when","we","know","that","current","ParamsType","contains","the","given","PyTensor","type","only","once","."]
code: def get_field(self, pytensor_type):
      """
      Return the name (string) of the first field associated to
      the given PyTensor type. Fields are sorted in lexicographic
      order. Raise an exception if this PyTensor type is not
      in the current ParamsType.
  
      This method is intended to be used to retrieve a field name
      when we know that current ParamsType contains the given
      PyTensor type only once.
  
      """
      return self.fields[self.types.index(pytensor_type)]
  
imports: import hashlib
  import re
  from pytensor.graph.utils import MethodNotDefined
  from pytensor.link.c.type import CType, EnumType
label_desc: Use image node_id 10 for calling the ParamsType obj's underlying member method code with example usage: obj.get_field(pytensor_type) and returns: self