code: def _main(argv):
      """Main function for invoking the `nsl.tools.pack_nbrs` function."""
      flags.FLAGS.showprefixforinfo = False
      # Check that the correct number of arguments have been provided.
      if len(argv) != 5:
          raise app.UsageError(
              "Invalid number of arguments; expected 4, got %d"
              % (len(argv) - 1)
          )
  
      pack_nbrs(
          labeled_examples_path=argv[1],
          unlabeled_examples_path=argv[2],
          graph_path=argv[3],
          output_training_data_path=argv[4],
          add_undirected_edges=_ADD_UNDIRECTED_EDGES.value,
          max_nbrs=_MAX_NBRS.value,
          id_feature_name=_ID_FEATURE_NAME.value,
      )
  
file_path: neural-structured-learning/neural_structured_learning/tools/pack_nbrs.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import time
  from absl import app
  from absl import flags
  from absl import logging
  from neural_structured_learning.tools import graph_utils
  import six
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _main(argv) without return types