code: def get_graph_padding_mask(
      padded_graph: gn_graph.GraphsTuple,
  ) -> ArrayTree:
      """Returns a mask for the graphs of a padded graph.
  
      Args:
        padded_graph: ``GraphsTuple`` padded using ``pad_with_graphs``.
  
      Returns:
        Boolean array of shape [total_num_graphs] containing True for real graphs,
        and False for padding graphs.
      """
      n_padding_graph = get_number_of_padding_with_graphs_graphs(
          padded_graph
      )
      total_num_graphs = padded_graph.n_node.shape[0]
      return _get_mask(
          padding_length=n_padding_graph, full_length=total_num_graphs
      )
  
imports: import functools
  from typing import Any, Callable, Generator, Iterable, Iterator, List, Mapping, Optional, Sequence, Union
  import jax
  from jax import lax
  import jax.numpy
  import jax.tree_util
  from jraph._src import graph
  import numpy
label_desc: Use image node_id 25 for calling a global function with example usage: get_graph_padding_mask(padded_graph) and returns: _get_mask