code: def test_concat_sorts_columns(self, sort):
      # GH-4588
      df1 = DataFrame({"a": [1, 2], "b": [1, 2]}, columns=["b", "a"])
      df2 = DataFrame({"a": [3, 4], "c": [5, 6]})
  
      # for sort=True/None
      expected = DataFrame(
          {
              "a": [1, 2, 3, 4],
              "b": [1, 2, None, None],
              "c": [None, None, 5, 6],
          },
          columns=["a", "b", "c"],
      )
  
      if sort is False:
          expected = expected[["b", "a", "c"]]
  
      # default
      with tm.assert_produces_warning(None):
          result = pd.concat([df1, df2], ignore_index=True, sort=sort)
      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 1 for calling the TestConcatSort obj's underlying member method code with example usage: obj.test_concat_sorts_columns(sort) without return types