code: def test_apply_in_arrow_not_returning_arrow_table(self):
      def func(key, left, right):
          return key
  
      with self.quiet_test():
          with self.assertRaisesRegex(
              PythonException,
              "Return type of the user-defined function should be pyarrow.Table, but is tuple",
          ):
              self.cogrouped.applyInArrow(
                  func, schema="id long"
              ).collect()
  
imports: import os
  import time
  import unittest
  from pyspark.errors import PythonException
  from pyspark.sql import Row
  from pyspark.sql.functions import col
  from pyspark.testing.sqlutils import ReusedSQLTestCase, have_pyarrow, pyarrow_requirement_message
  from pyspark.testing.utils import QuietTest
label_desc: Use image node_id 10 for calling the CogroupedMapInArrowTestsMixin obj's underlying member method code with example usage: obj.test_apply_in_arrow_not_returning_arrow_table() and returns: key