code: def import_and_get_task(task_path):
      
      module, function = task_path.rsplit('.', 1)
      app_module = importlib.import_module(module)
      app_function = getattr(app_module, function)
      return app_function
docs: Given a modular path to a function, import that module
      and return the function.