def class_for_kind(kind):
  """Return base-class responsible for implementing kind.

  Necessary to recover the class responsible for implementing provided
  kind.

  Args:
    kind: Entity kind string.

  Returns:
    Class implementation for kind.

  Raises:
    KindError when there is no implementation for kind.
  """
  try:
    return _kind_map[kind]
  except __HOLE__:
    raise KindError('No implementation for kind \'%s\'' % kind)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/class_for_kind