code: def assert_body_anfs_as_expected(
      self, expected_fn, test_fn, config=None
  ):
      # Testing the code bodies only.  Wrapping them in functions so the
      # syntax highlights nicely, but Python doesn't try to execute the
      # statements.
      exp_node, _ = parser.parse_entity(expected_fn, future_features=())
      node, _ = parser.parse_entity(test_fn, future_features=())
      node = anf.transform(node, self._simple_context(), config=config)
      exp_name = exp_node.name
      # Ignoring the function names in the result because they can't be
      # the same (because both functions have to exist in the same scope
      # at the same time).
      node.name = exp_name
      self.assert_same_ast(exp_node, node)
      # Check that ANF is idempotent
      node_repeated = anf.transform(node, self._simple_context())
      self.assert_same_ast(node_repeated, node)
  
imports: import textwrap
  import unittest
  import gast
  from nvidia.dali._autograph.pyct import loader
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import transformer
  from nvidia.dali._autograph.pyct.common_transformers import anf
label_desc: Use image node_id 3 for calling the AnfTestBase obj's underlying member method code with example usage: obj.assert_body_anfs_as_expected(expected_fn, test_fn, config) without return types