code: def _run_attr(run, name):
      if name in runlib.Run.__properties__:
          return getattr(run, name)
      return run.get(name)
  
imports: import errno
  import functools
  import logging
  import os
  import shutil
  import tempfile
  from guild import config
  from guild import run
  from guild import util
label_desc: Use image node_id 24 for calling a global function with example usage: _run_attr(run, name) and returns: run, getattr