code: def test_load_schema_bad_types(self) -> None:
      with self.assertRaises(TypeError):
          self.mapper.map_with_type(
              {
                  "my_bool": None,
                  "my_int": None,
                  "my_float": None,
                  "my_str": None,
                  "my_enum": None,
                  "my_optional_str": False,
                  "my_list": None,
                  "my_dict": None,
              },
              SampleConfigTypes,
          )
  
imports: from enum import Enum
  from typing import ClassVar, Dict, List, Optional, Union
  from unittest import main, TestCase
  import attr
  from torchbiggraph.schema import Dumper, extract_nested_type, inject_nested_value, Loader, Schema, schema, unpack_optional
label_desc: Use image node_id 8 for calling the TestLoader obj's underlying member method code with example usage: obj.test_load_schema_bad_types() without return types