code: def test_sort_values_inplace(self):
      frame = DataFrame(
          np.random.default_rng(2).standard_normal((4, 4)),
          index=[1, 2, 3, 4],
          columns=["A", "B", "C", "D"],
      )
  
      sorted_df = frame.copy()
      return_value = sorted_df.sort_values(by="A", inplace=True)
      assert return_value is None
      expected = frame.sort_values(by="A")
      tm.assert_frame_equal(sorted_df, expected)
  
      sorted_df = frame.copy()
      return_value = sorted_df.sort_values(by=1, axis=1, inplace=True)
      assert return_value is None
      expected = frame.sort_values(by=1, axis=1)
      tm.assert_frame_equal(sorted_df, expected)
  
      sorted_df = frame.copy()
      return_value = sorted_df.sort_values(
          by="A", ascending=False, inplace=True
      )
      assert return_value is None
      expected = frame.sort_values(by="A", ascending=False)
      tm.assert_frame_equal(sorted_df, expected)
  
      sorted_df = frame.copy()
      return_value = sorted_df.sort_values(
          by=["A", "B"], ascending=False, inplace=True
      )
      assert return_value is None
      expected = frame.sort_values(by=["A", "B"], ascending=False)
      tm.assert_frame_equal(sorted_df, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, NaT, Timestamp, date_range
  import pandas._testing
  from pandas.util.version import Version
label_desc: Use image node_id 4 for calling the TestDataFrameSortValues obj's underlying member method code with example usage: obj.test_sort_values_inplace() without return types