code: def _record(result, fname, fileobj):
      print(result)
      fileobj.write(f"{fname}: {result}\n")
  
file_path: nipy/tools/run_log_examples.py
imports: import os
  import re
  import sys
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
  from os.path import abspath, dirname, expanduser, isfile
  from os.path import join
  from os.path import sep
  from subprocess import PIPE, Popen
label_desc: Use image node_id 1 for calling a global function with example usage: _record(result, fname, fileobj) without return types