code: def head_script(tmp_dir):
      """Output first line of each file to different file with '-1' appended.
      Useful for tracking multiple outputs/dependencies which are not a copy
      of each others.
      """
      return _add_script(
          tmp_dir,
          "head.py",
          """
  import sys
  for file in sys.argv[1:]:
      with open(file) as f, open(file +"-1","w+") as w:
          w.write(f.readline())
  """.replace(
              "\r\n", "\n"
          ),
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: head_script(tmp_dir) and returns: _add_script