code: def _cmp_oprefs(run_opref, opref, match_regex):
      assert run_opref.op_name
      assert opref.op_name
      return (
          (
              opref.pkg_type is None
              or run_opref.pkg_type == opref.pkg_type
          )
          and (
              opref.pkg_name is None
              or run_opref.pkg_name == opref.pkg_name
          )
          and (
              opref.pkg_version is None
              or run_opref.pkg_version == opref.pkg_version
          )
          and (
              opref.model_name is None
              or _cmp(
                  run_opref.model_name, opref.model_name, match_regex
              )
          )  #
          and _cmp(run_opref.op_name, opref.op_name, 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 6 for calling a global function with example usage: _cmp_oprefs(run_opref, opref, match_regex) and returns: unknown