code: def _get_from_path(import_path):
      # type: (str) -> Callable
      
      module_name, obj_name = import_path.rsplit('.', 1)
      module = import_module(module_name)
      return getattr(module, obj_name)
docs: Kwargs:
          import_path: full import path (to a mock factory function)
  
      Returns:
          (the mock factory function)