code: def _get_field_size_from_size_tuple(size_tuple, graphs_field_name):
      field_size_name = _GRAPH_ATTRIBUTE_TO_SIZE_MAP[graphs_field_name]
      return getattr(size_tuple, field_size_name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import functools
  from absl import logging
  from graph_nets import graphs
  from graph_nets import utils_np
  import six
  from six.moves import range
  import tensorflow
  import tree
label_desc: Use image node_id 31 for calling a global function with example usage: _get_field_size_from_size_tuple(size_tuple, graphs_field_name) and returns: getattr