class_docstr: Provides a type registry for the python registry pattern.
  
  Contains mappings between types and type specific objects, to implement the
  registry pattern.
  
  Some example uses of this would be to register different functions depending
  on the type of object.
class_docstr_tok: ["Provides","a","type","registry","for","the","python","registry","pattern",".","Contains","mappings","between","types","and","type","specific","objects",",","to","implement","the","registry","pattern",".","Some","example","uses","of","this","would","be","to","register","different","functions","depending","on","the","type","of","object","."]
docstr: Looks up 'obj'.
  
  Args:
    obj: The object to lookup within the registry.
  
  Returns:
    Value for 'obj' in the registry if found.
  Raises:
    LookupError: if 'obj' has not been registered.
docstr_tok: ["Looks","up","'obj","'",".","Args",":","obj",":","The","object","to","lookup","within","the","registry",".","Returns",":","Value","for","'obj","'","in","the","registry","if","found",".","Raises",":","LookupError",":","if","'obj","'","has","not","been","registered","."]
code: def lookup(self, obj):
      """Looks up 'obj'.
  
      Args:
        obj: The object to lookup within the registry.
  
      Returns:
        Value for 'obj' in the registry if found.
      Raises:
        LookupError: if 'obj' has not been registered.
      """
      for registered in self._registry:
          if isinstance(obj, registered):
              return self._registry[registered]
  
      raise LookupError(f"{type(obj)} has not been registered.")
  
label_desc: Use image node_id 3 for calling the TypeRegistry obj's underlying member method code with example usage: obj.lookup(obj) and returns: self