code: def get_object_type_by_name(object_type_name):
      
      if object_type_name == b"commit":
          from . import commit
          return commit.Commit
      elif object_type_name == b"tag":
          from . import tag
          return tag.TagObject
      elif object_type_name == b"blob":
          from . import blob
          return blob.Blob
      elif object_type_name == b"tree":
          from . import tree
          return tree.Tree
      else:
          raise ValueError("Cannot handle unknown object type: %s" % object_type_name)
docs: :return: type suitable to handle the given object type name.
          Use the type to create new instances.
  
      :param object_type_name: Member of TYPES
  
      :raise ValueError: In case object_type_name is unknown