code: def _proc_paths(paths, er=None, et=None, max_length=1, pad=(-1, -1)):
      """Process path from string to list of ints, exculde query tuple and pad."""
      assert len(pad) == 2
      out = []
      for path in paths:
          p = map(int, path.strip().split(" "))
          p += list(pad) * (max_length - int(0.5 * len(p)))
          if er:
              if p[0] == er and p[1] == et:
                  continue
          out.append(p)
      return out
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import clueweb_text_graph
  import numpy
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: _proc_paths(paths, er, et, max_length, pad) and returns: out