code: def test_simple_failures():
      hp = Simple()
      with pytest.raises(TypeError):
          hp.validate()  # mandatory_nodefault unset
      with pytest.raises(TypeError):
          hp.override_from_pair("mandatory_nodefault", "abc")
      with pytest.raises(AttributeError):
          hp.override_from_pair("nonexistent_field", 7.0)
      with pytest.raises(TypeError):
          hp.override_from_pair("fun", "?")
      assert hp == Simple.from_json(dict())
  
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 2 for calling a global function with example usage: test_simple_failures() without return types