code: def import_attr(path):
      
      module_path, attr_name = path.rsplit(".", 1)
      return getattr(import_module(module_path), attr_name)
docs: Given a a Python dotted path to a variable in a module,
      imports the module and returns the variable in it.