code: def batcher(ctx):
      def batcher_dev(batch):
          batch_trees = dgl.batch(batch)
          return SSTBatch(
              graph=batch_trees,
              mask=batch_trees.ndata["mask"].as_in_context(ctx),
              wordid=batch_trees.ndata["x"].as_in_context(ctx),
              label=batch_trees.ndata["y"].as_in_context(ctx),
          )
  
      return batcher_dev
  
file_path: dgl/examples/mxnet/tree_lstm/train.py
imports: import argparse
  import collections
  import os
  import time
  import warnings
  import zipfile
  import dgl
  import dgl.data
  import mxnet
  import numpy
  from mxnet import gluon
  from tree_lstm import TreeLSTM
label_desc: Use image node_id 1 for calling a global function with example usage: batcher(ctx) and returns: batcher_dev, SSTBatch