code: def test_bad_unischema_field_shape():
      codec = ScalarCodec(IntegerType())
      field = UnischemaField(
          name="field_int",
          numpy_dtype=np.int32,
          shape=(1,),
          codec=codec,
          nullable=False,
      )
      with pytest.raises(ValueError, match="must be an empty tuple"):
          codec.encode(field, np.int32(1))
  
file_path: petastorm/petastorm/tests/test_codec_scalar.py
imports: from decimal import Decimal
  import numpy
  import pytest
  from pyspark.sql.types import StringType, ByteType, ShortType, IntegerType, LongType, DecimalType, BooleanType, FloatType
  from petastorm.codecs import ScalarCodec
  from petastorm.unischema import UnischemaField
label_desc: Use image node_id 6 for calling a global function with example usage: test_bad_unischema_field_shape() without return types