code: def load_object(name):
      
  
      if "." not in name:
          raise Exception('load object need module.object')
  
      module_name, object_name = name.rsplit('.', 1)
      if six.PY2:
          module = __import__(module_name, globals(), locals(), [utf8(object_name)], -1)
      else:
          module = __import__(module_name, globals(), locals(), [object_name])
      return getattr(module, object_name)
docs: Load object from module