code: def test_basic_sort(self, arg, exp):
      result = safe_sort(np.array(arg))
      expected = np.array(exp)
      tm.assert_numpy_array_equal(result, expected)
  
imports: from collections import defaultdict
  from datetime import datetime
  from itertools import product
  import numpy
  import pytest
  from pandas import NA, DataFrame, MultiIndex, Series, array, concat, merge
  import pandas._testing
  from pandas.core.algorithms import safe_sort
  import pandas.core.common
  from pandas.core.sorting import _decons_group_index, get_group_index, is_int64_overflow_possible, lexsort_indexer, nargsort
label_desc: Use image node_id 1 for calling the TestSafeSort obj's underlying member method code with example usage: obj.test_basic_sort(arg, exp) without return types