code: def make_string(obj):
      
      if inspect.isclass(obj):
          if issubclass(obj, Object):
              return obj._ROOT.__name__
          if issubclass(obj, string_types):
              return 'string'
          return obj.__name__
      if not isinstance(obj, string_types):
          raise TypeError("expected string or class")
      return obj
docs: If ``obj`` is a string, return that, otherwise attempt to figure out the
      name of a type.