code: def test_non_list_record_path_errors(self, value):
      # see gh-30148, GH 26284
      parsed_value = json.loads(value)
      test_input = {"state": "Texas", "info": parsed_value}
      test_path = "info"
      msg = (
          f"Path must contain list or null, "
          f"but got {type(parsed_value).__name__} at 'info'"
      )
      with pytest.raises(TypeError, match=msg):
          json_normalize([test_input], record_path=[test_path])
  
imports: import json
  import numpy
  import pytest
  from pandas import DataFrame, Index, Series, json_normalize
  import pandas._testing
  from pandas.io.json._normalize import nested_to_record
label_desc: Use image node_id 21 for calling the TestJSONNormalize obj's underlying member method code with example usage: obj.test_non_list_record_path_errors(value) without return types