code: def test_nested_type_field():
      hp = Trickier()
      with pytest.raises(TypeError):
          # first field should be str
          hp.override_from_json(dict(tuple_list_field=(2, [])))
      with pytest.raises(TypeError):
          # second field should be list
          hp.override_from_json(dict(tuple_list_field=("2", 3)))
      hp.override_from_json(dict(tuple_list_field=("2", [3])))
      assert hp == Trickier.from_json(dict(tuple_list_field=("2", [3])))
      with pytest.raises(TypeError):
          # should be a list
          hp.override_from_json(dict(list_tuple_field=("2", 3)))
      with pytest.raises(TypeError):
          # should be list of tuples
          hp.override_from_json(dict(list_tuple_field=["2"]))
      hp.override_from_json(dict(list_tuple_field=[]))
      hp.override_from_json(dict(list_tuple_field=[("2", 3)]))
  
      with pytest.raises(TypeError):
          # mandatory_nodefault not set
          hp.validate()
      with pytest.raises(TypeError):
          hp.clone()
      hp.dict_field = dict()
      hp.nested_dict_field = dict()
      hp.validate()
      assert hp == hp.clone()
  
imports: from dataclasses import dataclass, field
  from typing import Optional, Dict, List, Tuple, Union
  import pytest
  from summarize_from_feedback.utils import hyperparams
label_desc: Use image node_id 10 for calling a global function with example usage: test_nested_type_field() without return types