code: def build_nonlocal_block(cfg):
      """Build nonlocal block from
      `"Non-local Neural Networks"
      <https://arxiv.org/abs/1711.07971>`_ paper.
      Code adapted from mmaction.
      """
      assert isinstance(cfg, dict)
      cfg_ = cfg.copy()
      return NonLocal(**cfg_)
  
file_path: gluon-cv/gluoncv/model_zoo/action_recognition/non_local.py
imports: from mxnet.gluon.block import HybridBlock
  from mxnet import init
  from mxnet.gluon import nn
  from mxnet.gluon.nn import BatchNorm
label_desc: Use image node_id 1 for calling a global function with example usage: build_nonlocal_block(cfg) and returns: NonLocal