code: def _init_bsc():
      """Replace _register_hook() function in _DistributedOptimizer with empty function."""
  
      def hijack(obj, func_name):
          orig_func = getattr(obj, func_name)
          # print("hijack function {}".format(orig_func))
  
          def wrapped_func(*args, **kwargs):
              # print("function {} is hijacked to do nothing.".format(orig_func))
              return
  
          setattr(obj, func_name, wrapped_func)
  
      hijack(_DistributedOptimizer, "_register_hooks")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from byteps.torch.compression import Compression
  from byteps.torch.ops import push_pull_async_inplace
  from byteps.torch.ops import poll, synchronize
  from byteps.torch.ops import init, shutdown
  from byteps.torch.ops import size, local_size, rank, local_rank
  import threading
  import logging
  import time
  import math
  import torch
  import byteps.torch
label_desc: Use image node_id 1 for calling a global function with example usage: _init_bsc() without return types