code: def test_fixed_size_binary():
      s = pa.scalar(b"foof", type=pa.binary(4))
      assert isinstance(s, pa.FixedSizeBinaryScalar)
      assert s.as_py() == b"foof"
  
      with pytest.raises(pa.ArrowInvalid):
          pa.scalar(b"foof5", type=pa.binary(4))
  
imports: import datetime
  import decimal
  import pytest
  import sys
  import weakref
  import numpy
  import pyarrow
  import pyarrow.compute
  from pyarrow.tests import util
label_desc: Use image node_id 31 for calling a global function with example usage: test_fixed_size_binary() without return types