code: def test_join_ordering_pandas_compat(left, right, sort, how):
      with cudf.option_context("mode.pandas_compatible", True):
          actual = left.merge(right, on="key", how=how, sort=sort)
      expect = expected(left, right, sort, how=how)
      assert_eq(expect, actual)
  
file_path: cudf/python/cudf/cudf/tests/test_join_order.py
imports: import itertools
  import operator
  import string
  from collections import defaultdict
  import numpy
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_220
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 4 for calling a global function with example usage: test_join_ordering_pandas_compat(left, right, sort, how) without return types