code: def _check_reader(path, rowgroup_selector=None):
      # Just check that you can open and read from a reader successfully
      with make_reader(
          "file://{}".format(path),
          reader_pool_type="dummy",
          rowgroup_selector=rowgroup_selector,
      ) as reader:
          [next(reader) for _ in range(10)]
  
file_path: petastorm/petastorm/tests/test_generate_metadata.py
imports: import os
  from collections import namedtuple
  from shutil import copytree
  import pyarrow.parquet
  import pytest
  from petastorm import make_reader
  from petastorm.etl import petastorm_generate_metadata
  from petastorm.selectors import SingleIndexSelector
  from petastorm.tests.test_common import create_test_dataset, TestSchema
label_desc: Use image node_id 2 for calling a global function with example usage: _check_reader(path, rowgroup_selector) without return types