code: def import_attribute(path):
      
      module_name, attribute_name = path.rsplit('.', 1)
      module = import_module(module_name)
      attribute = getattr(module, attribute_name)
      return attribute
docs: Import attribute by path like `package.module.attribute`