code: def _encoded_x_field(encoded_x, path):
      """Returns a field from `encoded_x` returned by the `encode` method.
  
      In order to test the correctness of encoding, we also need to access the
      encoded objects, which in turns depends on an implementation detail (the
      specific use of `nest.flatten_with_joined_string_paths`). This dependence is
      constrained to a single place in this utility.
  
      Args:
        encoded_x: The structure returned by the `encode` method.
        path: A list of keys corresponding to the path in the nested dictionary
          before it was flattened.
  
      Returns:
        A value from `encoded_x` corresponding to the `path`.
      """
      return encoded_x["/".join(path)]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.framework import test_util
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import core_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import simple_encoder
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.testing import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _encoded_x_field(encoded_x, path) and returns: encoded_x