class_docstr: A graph block that applies models to the graph elements independently.
  
  The inputs and outputs are graphs. The corresponding models are applied to
  each element of the graph (edges, nodes and globals) in parallel and
  independently of the other elements. It can be used to encode or
  decode the elements of a graph.
docstr: Connects the GraphIndependent.
  
  Args:
    graph: A `graphs.GraphsTuple` containing non-`None` edges, nodes and
      globals.
    edge_model_kwargs: Optional keyword arguments to pass to
      the edge block model.
    node_model_kwargs: Optional keyword arguments to pass to
      the node block model.
    global_model_kwargs: Optional keyword arguments to pass to
      the global block model.
  
  Returns:
    An output `graphs.GraphsTuple` with updated edges, nodes and globals.
code: def _build(
      self,
      graph,
      edge_model_kwargs=None,
      node_model_kwargs=None,
      global_model_kwargs=None,
  ):
      """Connects the GraphIndependent.
  
      Args:
        graph: A `graphs.GraphsTuple` containing non-`None` edges, nodes and
          globals.
        edge_model_kwargs: Optional keyword arguments to pass to
          the edge block model.
        node_model_kwargs: Optional keyword arguments to pass to
          the node block model.
        global_model_kwargs: Optional keyword arguments to pass to
          the global block model.
  
      Returns:
        An output `graphs.GraphsTuple` with updated edges, nodes and globals.
      """
      if edge_model_kwargs is None:
          edge_model_kwargs = {}
      if node_model_kwargs is None:
          node_model_kwargs = {}
      if global_model_kwargs is None:
          global_model_kwargs = {}
      return graph.replace(
          edges=self._edge_model(graph.edges, **edge_model_kwargs),
          nodes=self._node_model(graph.nodes, **node_model_kwargs),
          globals=self._global_model(
              graph.globals, **global_model_kwargs
          ),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from graph_nets import _base
  from graph_nets import blocks
  import tensorflow
label_desc: Use image node_id 2 for calling the GraphIndependent obj's underlying member method code with example usage: obj._build(graph, edge_model_kwargs, node_model_kwargs, global_model_kwargs) and returns: graph