code: def load_pyobj(name, pyobj):
      'Return Sheet object of appropriate type for given sources in `args`.'
      if isinstance(pyobj, list) or isinstance(pyobj, tuple):
          if getattr(pyobj, '_fields', None):  # list of namedtuple
              return SheetNamedTuple(name, pyobj)
          else:
              return SheetList(name, pyobj)
      elif isinstance(pyobj, dict):
          return SheetDict(name, pyobj)
      elif isinstance(pyobj, object):
          return SheetObject(name, pyobj)
      else:
          error("cannot load '%s' as pyobj" % type(pyobj).__name__f load_pyobj(name, pyobj):
      'Return Sheet object of appropriate type for given sources in `args`.'
      if isinstance(pyobj, list) or isinstance(pyobj, tuple):
          if getattr(pyobj, '_fields', None):  # list of namedtuple
              return SheetNamedTuple(name, pyobj)
          else:
              return SheetList(name, pyobj)
      elif isinstance(pyobj, dict):
          return SheetDict(name, pyobj)
      elif isinstance(pyobj, object):
          return SheetObject(name, pyobj)
      else:
          error("cannot load '%s' as pyobj" % type(pyobj).__name__)
docs: Return Sheet object of appropriate type for given sources in `args`.