code: def _import_external_ops(message):
      if "horovod" in message.lower():
          logger.info("Importing horovod ...")
          import horovod.tensorflow  # noqa
  
          return
      if "MaxBytesInUse" in message:
          logger.info("Importing memory_stats ...")
          from tensorflow.contrib.memory_stats import (
              MaxBytesInUse,
          )  # noqa
  
          return
      if "Nccl" in message:
          logger.info("Importing nccl ...")
          if TF_version <= (1, 12):
              try:
                  from tensorflow.contrib.nccl.python.ops.nccl_ops import (
                      _validate_and_load_nccl_so,
                  )
              except Exception:
                  pass
              else:
                  _validate_and_load_nccl_so()
              from tensorflow.contrib.nccl.ops import (
                  gen_nccl_ops,
              )  # noqa
          else:
              from tensorflow.python.ops import gen_nccl_ops  # noqa
          return
      if "ZMQConnection" in message:
          import zmq_ops  # noqa
  
          return
      logger.error("Unhandled error: " + message)
  
file_path: tensorpack/scripts/dump-model-params.py
imports: import argparse
  import numpy
  import os
  import six
  import tensorflow
  from tensorpack import logger
  from tensorpack.tfutils import varmanip
  from tensorpack.tfutils.common import get_op_tensor_name, get_tf_version_tuple
label_desc: Use image node_id 1 for calling a global function with example usage: _import_external_ops(message) without return types