code: def _chase_origin(task):
      from metaflow.client import Task
  
      task_origin = None
      ref_task = task
      while ref_task.origin_pathspec is not None:
          task_origin = ref_task.origin_pathspec
          ref_task = Task(task_origin)
      return task_origin
  
imports: from .card_datastore import CardDatastore
label_desc: Use image node_id 1 for calling a global function with example usage: _chase_origin(task) and returns: task_origin