code: def test_joins_corner_cases():
      t1 = pa.Table.from_pydict(
          {
              "colA": [1, 2, 3, 4, 5, 6],
              "col2": ["a", "b", "c", "d", "e", "f"],
          }
      )
  
      t2 = pa.Table.from_pydict(
          {"colB": [1, 2, 3, 4, 5], "col3": ["A", "B", "C", "D", "E"]}
      )
  
      with pytest.raises(pa.ArrowInvalid):
          _perform_join("left outer", t1, "", t2, "")
  
      with pytest.raises(TypeError):
          _perform_join("left outer", None, "colA", t2, "colB")
  
      with pytest.raises(ValueError):
          _perform_join("super mario join", t1, "colA", t2, "colB")
  
file_path: arrow/python/pyarrow/tests/test_exec_plan.py
imports: import pytest
  import pyarrow
  import pyarrow.compute
  from .test_extension_type import IntegerType
label_desc: Use image node_id 1 for calling a global function with example usage: test_joins_corner_cases() without return types