code: def get_project_local(exe):
      (head, path) = local.env["PATH"].split(":", 1)
      assert VENV_BIN_PATH.samefile(head)
      with local.env(PATH=path):
          return local[exe]
  
imports: from pathlib import Path
  from argparse import REMAINDER
  from argcmdr import CacheDict, Local, LocalRoot, localmethod
  from plumbum import local
label_desc: Use image node_id 1 for calling a global function with example usage: get_project_local(exe) and returns: local