code: def import_attribute(self, path):
          
          module = '.'.join(path.split('.')[:-1])
          function = path.split('.')[-1]
  
          module = importlib.import_module(module)
          return getattr(module, function)
docs: Import an attribute from a module.