code: def import_class(path):
      
      components = path.split(".")
      module = components[:-1]
      module = ".".join(module)
      mod = __import__(module, fromlist=[native_str(components[-1])])
      return getattr(mod, native_str(components[-1]))
docs: Import a class from a string module class path