code: def use_custom_op(op_mod, must=True, op_sub_mod=None):
      mod = import_custom_op(op_mod, must=must, op_sub_mod=op_sub_mod)
      try:
          yield mod
      finally:
          pass
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/utils/misc.py
imports: import copy
  import importlib
  from collections.abc import Mapping, Sequence
  from contextlib import contextmanager
  from tabulate import tabulate
  from paddleseg.utils import logger
label_desc: Use image node_id 4 for calling a global function with example usage: use_custom_op(op_mod, must, op_sub_mod) without return types