class_docstr: Various Series and DataFrame methods.
class_docstr_tok: ["Various","Series","and","DataFrame","methods","."]
code: def test_sort_values_frame(self, data_for_sorting, ascending):
      df = pd.DataFrame({"A": [1, 2, 1], "B": data_for_sorting})
      result = df.sort_values(["A", "B"])
      expected = pd.DataFrame(
          {"A": [1, 1, 2], "B": data_for_sorting.take([2, 0, 1])},
          index=[2, 0, 1],
      )
      tm.assert_frame_equal(result, expected)
  
imports: import inspect
  import operator
  import numpy
  import pytest
  from pandas._typing import Dtype
  from pandas.core.dtypes.common import is_bool_dtype
  from pandas.core.dtypes.dtypes import NumpyEADtype
  from pandas.core.dtypes.missing import na_value_for_dtype
  import pandas
  import pandas._testing
  from pandas.core.sorting import nargsort
label_desc: Use image node_id 20 for calling the BaseMethodsTests obj's underlying member method code with example usage: obj.test_sort_values_frame(data_for_sorting, ascending) without return types