code: def _opref_is_op_run(opref, run, match_regex=False):
      try:
          run_opref = run.opref
      except OpRefError as e:
          log.warning("cannot read opref for run %s: %s", run.id, e)
          return False
      else:
          if not run_opref.op_name:
              log.warning("cannot get op name for run %s", run.id)
              return False
          return _cmp_oprefs(run_opref, opref, match_regex)
  
file_path: guildai/guild/opref.py
imports: import collections
  import logging
  import os
  import re
  from guild import util
label_desc: Use image node_id 5 for calling a global function with example usage: _opref_is_op_run(opref, run, match_regex) and returns: _cmp_oprefs, False, False