code: def test_partitioned_field_is_not_queried(reader_factory, tmpdir):
      """Try datasets partitioned by a string, integer and string+integer fields"""
      url = "file://" + tmpdir.strpath
  
      data = create_test_scalar_dataset(url, 10, partition_by=["id"])
      with reader_factory(url, schema_fields=["string"]) as reader:
          all_rows = list(reader)
      assert len(data) == len(all_rows)
      assert all_rows[0]._fields == ("string",)
  
imports: import glob
  import itertools
  import numpy
  import pandas
  import pytest
  from pyarrow import parquet
  from petastorm import make_batch_reader, make_reader
  from petastorm.arrow_reader_worker import ArrowReaderWorker
  from petastorm.tests.test_common import create_test_scalar_dataset
  from petastorm.transform import TransformSpec
  from petastorm.unischema import UnischemaField
label_desc: Use image node_id 7 for calling a global function with example usage: test_partitioned_field_is_not_queried(reader_factory, tmpdir) without return types