code: def _match_short_id(m):
      # A match can be a run or a tuple of run_id, path
      try:
          return m.short_id
      except AttributeError:
          run_id, _path = m
          return run_id[:8]
  
imports: import logging
  import os
  import typing
  from guild import cli
  from guild import click_util
  from guild import config
label_desc: Use image node_id 9 for calling a global function with example usage: _match_short_id(m) and returns: m, run_id