code: def test_read_invalid_tfrecords(ray_start_regular_shared, tmp_path):
      file_path = os.path.join(tmp_path, "file.json")
      with open(file_path, "w") as file:
          json.dump({"number": 0, "string": "foo"}, file)
  
      # Expect RuntimeError raised when reading JSON as TFRecord file.
      with pytest.raises(
          RuntimeError, match="Failed to read TFRecord file"
      ):
          ray.data.read_tfrecords(file_path).schema()
  
imports: import json
  import os
  from typing import TYPE_CHECKING
  import numpy
  import pytest
  from pandas.api.types import is_float_dtype, is_int64_dtype, is_object_dtype
  import ray
  from ray.tests.conftest import *
label_desc: Use image node_id 14 for calling a global function with example usage: test_read_invalid_tfrecords(ray_start_regular_shared, tmp_path) without return types