code: def test_read_binary_files(ray_start_regular_shared):
      with gen_bin_files(10) as (_, paths):
          ds = ray.data.read_binary_files(paths, parallelism=10)
          for i, item in enumerate(ds.iter_rows()):
              expected = open(paths[i], "rb").read()
              assert expected == item["bytes"]
          # Test metadata ops.
          assert ds.count() == 10
          assert "bytes" in str(ds.schema()), ds
          assert "bytes" in str(ds), ds
  
imports: import os
  from io import BytesIO
  import pandas
  import pyarrow
  import pytest
  import requests
  import snappy
  import ray
  from ray.data.datasource import BaseFileMetadataProvider, FastFileMetadataProvider, Partitioning, PartitionStyle, PathPartitionFilter
  from ray.data.tests.conftest import *
  from ray.data.tests.mock_http_server import *
  from ray.data.tests.test_partitioning import PathPartitionEncoder
  from ray.data.tests.util import Counter, extract_values, gen_bin_files
  from ray.tests.conftest import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_binary_files(ray_start_regular_shared) without return types