code: def test_sort_values():
      raw = pd.DataFrame(
          {
              "a": np.random.rand(10),
              "b": np.random.randint(1000, size=10),
              "c": np.random.rand(10),
              "d": [np.random.bytes(10) for _ in range(10)],
              "e": [pd.Timestamp(f"201{i}") for i in range(10)],
              "f": [pd.Timedelta(f"{i} days") for i in range(10)],
          },
      )
      df = DataFrame(raw)
      sorted_df = dataframe_sort_values(df, by="c")
  
      assert sorted_df.shape == raw.shape
      assert isinstance(sorted_df.op, DataFrameSortValues)
  
      tiled = tile(sorted_df)
  
      assert len(tiled.chunks) == 1
      assert isinstance(tiled.chunks[0].op, DataFrameSortValues)
  
      df = DataFrame(raw, chunk_size=6)
      sorted_df = dataframe_sort_values(df, by="c")
  
      assert sorted_df.shape == raw.shape
      assert isinstance(sorted_df.op, DataFrameSortValues)
  
      tiled = tile(sorted_df)
  
      assert len(tiled.chunks) == 2
      assert tiled.chunks[0].op.stage == OperandStage.reduce
  
      df = DataFrame(raw, chunk_size=3)
      sorted_df = dataframe_sort_values(df, by=["a", "c"])
  
      assert sorted_df.shape == raw.shape
      assert isinstance(sorted_df.op, DataFrameSortValues)
  
      tiled = tile(sorted_df)
  
      assert len(tiled.chunks) == 3
      assert tiled.chunks[0].op.stage == OperandStage.reduce
      pd.testing.assert_series_equal(tiled.chunks[0].dtypes, raw.dtypes)
      assert tiled.chunks[1].op.stage == OperandStage.reduce
      pd.testing.assert_series_equal(tiled.chunks[1].dtypes, raw.dtypes)
      assert tiled.chunks[2].op.stage == OperandStage.reduce
      pd.testing.assert_series_equal(tiled.chunks[2].dtypes, raw.dtypes)
  
file_path: mars/mars/dataframe/sort/tests/test_sort.py
imports: import numpy
  import pandas
  from ....core import tile
  from ....core.operand import OperandStage
  from ...indexing.getitem import DataFrameIndex
  from ...initializer import DataFrame
  from ..sort_index import sort_index, DataFrameSortIndex
  from ..sort_values import dataframe_sort_values, DataFrameSortValues
label_desc: Use image node_id 1 for calling a global function with example usage: test_sort_values() without return types