code: def get_function_by_path(dotted_function_module_path):
      
      # Separate the module path from the function name.
      module_path, function_name = tuple(dotted_function_module_path.rsplit('.', 1))
  
      module = import_module(module_path)
      return getattr(module, function_name)
docs: Returns the function for a given path (e.g. 'my_app.my_module.my_function').