code: def test_invalid_union_field():
      hp = InvalidUnion()
      hp.override_from_pairs([("union_field", 3)])
      assert hp == InvalidUnion.from_json(dict(union_field=3))
      assert hp.union_field == 3
  
      with pytest.raises(TypeError):
          hp.override_from_pairs([("union_field_2", ["3"])])
      with pytest.raises(TypeError):
          hp.override_from_pairs([("union_field_3", dict())])
      with pytest.raises(TypeError):
          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 13 for calling a global function with example usage: test_invalid_union_field() without return types