code: def _get_static_num_nodes(graph):
      """Returns the static total number of nodes in a batch or None."""
      return (
          None
          if graph.nodes is None
          else graph.nodes.shape.as_list()[0]
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from graph_nets import _base
  from graph_nets import graphs
  from graph_nets import utils_tf
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: _get_static_num_nodes(graph) and returns: unknown