code: def test_loading_detector_with_data_containing_objects_throws_exception(
      tmp_path,
  ):
      data = np.array(
          [
              ["42", 1, 1234077000],
              ["42", 2, 1234088000],
              ["42", 3, 1234099000],
          ],
          dtype=object,
      )
      p_val = 0.42
  
      create_and_save_detector(data, p_val, tmp_path)
  
      with pytest.raises(Exception) as ex_info:
          _ = load_detector(tmp_path)
  
      assert ex_info.typename == "ValueError"
      assert (
          ex_info.value.args[0]
          == "Object arrays cannot be loaded when allow_pickle=False"
      )
  
imports: import numpy
  import pytest
  from alibi_detect.cd import TabularDrift
  from alibi_detect.saving import save_detector, load_detector
label_desc: Use image node_id 2 for calling a global function with example usage: test_loading_detector_with_data_containing_objects_throws_exception(tmp_path) without return types