code: def test_dataclass(self):
      d = {
          "a": {"b": {"c": 5.1}},
          "data": TestDataclass(
              simple_field=42, dict_field={"a": 6, "z": 10}
          ),
      }
      expected_keys = [
          "a_b_c",
          "data_simple_field",
          "data_dict_field_a",
          "data_dict_field_z",
      ]
      expected_vals = [5.1, 42, 6, 10]
      self._assert_keys_values(
          tff.utils.iterate_nested(d),
          expected_keys=expected_keys,
          expected_values=expected_vals,
      )
  
file_path: tf-quant-finance/tf_quant_finance/utils/tf_functions_test.py
imports: from typing import Dict
  import dataclasses
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 6 for calling the TfFunctionsTest obj's underlying member method code with example usage: obj.test_dataclass() without return types