code: def test_checked_cast_dict(self) -> None:
      self.assertEqual(
          checked_cast_dict(str, int, {"some": 1}), {"some": 1}
      )
      with self.assertRaises(ValueError):
          checked_cast_dict(str, int, {"some": 1.0})
      with self.assertRaises(ValueError):
          checked_cast_dict(str, int, {1: 1})
  
file_path: Ax/ax/utils/common/tests/test_typeutils.py
imports: import numpy
  from ax.utils.common.testutils import TestCase
  from ax.utils.common.typeutils import checked_cast, checked_cast_dict, checked_cast_list, checked_cast_optional, not_none, numpy_type_to_python_type
label_desc: Use image node_id 6 for calling the TestTypeUtils obj's underlying member method code with example usage: obj.test_checked_cast_dict() without return types