code: def test_serializing_expressions(expr):
      schema = pa.schema(
          [pa.field("x", pa.int32()), pa.field("y", pa.int32())]
      )
  
      buf = pa.substrait.serialize_expressions(
          [expr], ["test_expr"], schema
      )
      returned = pa.substrait.deserialize_expressions(buf)
      assert schema == returned.schema
      assert len(returned.expressions) == 1
      assert "test_expr" in returned.expressions
  
imports: import os
  import pathlib
  import pytest
  import pyarrow
  import pyarrow.compute
  from pyarrow.lib import tobytes
  from pyarrow.lib import ArrowInvalid, ArrowNotImplementedError
label_desc: Use image node_id 17 for calling a global function with example usage: test_serializing_expressions(expr) without return types