code: def test_invalid_column_name(scalar_dataset, reader_factory):
      """Request a column that doesn't exist. When request only invalid fields,
      DummyPool returns an EmptyResultError, which then causes a StopIteration in
      ArrowReaderWorkerResultsQueueReader."""
      all_fields = list(scalar_dataset.data[0].keys())
      bad_field = _get_bad_field_name(all_fields)
      requested_fields = [bad_field]
      with pytest.raises(
          RuntimeError,
          match=f"No fields matching the criteria.*{bad_field}.*",
      ):
          reader_factory(
              scalar_dataset.url, schema_fields=requested_fields
          )
  
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 9 for calling a global function with example usage: test_invalid_column_name(scalar_dataset, reader_factory) without return types