code: def test_concat_inner_sort(self, sort):
      # https://github.com/pandas-dev/pandas/pull/20613
      df1 = DataFrame(
          {"a": [1, 2], "b": [1, 2], "c": [1, 2]},
          columns=["b", "a", "c"],
      )
      df2 = DataFrame({"a": [1, 2], "b": [3, 4]}, index=[3, 4])
  
      with tm.assert_produces_warning(None):
          # unset sort should *not* warn for inner join
          # since that never sorted
          result = pd.concat(
              [df1, df2], sort=sort, join="inner", ignore_index=True
          )
  
      expected = DataFrame(
          {"b": [1, 2, 3, 4], "a": [1, 2, 1, 2]}, columns=["b", "a"]
      )
      if sort is True:
          expected = expected[["a", "b"]]
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/reshape/concat/test_sort.py
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame
  import pandas._testing
label_desc: Use image node_id 3 for calling the TestConcatSort obj's underlying member method code with example usage: obj.test_concat_inner_sort(sort) without return types