code: def test_read_tfrecords_ignore_missing_paths(
      ray_start_regular_shared, tmp_path, ignore_missing_paths
  ):
      import tensorflow as tf
  
      example = tf_records_empty()[0]
  
      path = os.path.join(tmp_path, "data.tfrecords")
      with tf.io.TFRecordWriter(path=path) as writer:
          writer.write(example.SerializeToString())
  
      paths = [
          path,
          "missing.tfrecords",
      ]
  
      if ignore_missing_paths:
          ds = ray.data.read_tfrecords(
              paths, ignore_missing_paths=ignore_missing_paths
          )
          assert ds.input_files() == [path]
      else:
          with pytest.raises(FileNotFoundError):
              ds = ray.data.read_tfrecords(
                  paths, ignore_missing_paths=ignore_missing_paths
              )
              ds.materialize()
  
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 8 for calling a global function with example usage: test_read_tfrecords_ignore_missing_paths(ray_start_regular_shared, tmp_path, ignore_missing_paths) without return types