code: def import_dotted_path(path):
      
      # stolen from Mezzanine (mezzanine.utils.importing.import_dotted_path)
      try:
          module_path, member_name = path.rsplit(".", 1)
          module = import_module(module_path)
          return getattr(module, member_name)
      except (ValueError, ImportError, AttributeError) as e:
          raise ImportError('Could not import the name: {}: {}'.format(path, e))
docs: Takes a dotted path to a member name in a module, and returns
      the member after importing it.