code: def test_sort_stats_string(self):
      for sort_name in [
          "calls",
          "ncalls",
          "cumtime",
          "cumulative",
          "filename",
          "line",
          "module",
          "name",
          "nfl",
          "pcalls",
          "stdname",
          "time",
          "tottime",
      ]:
          self.stats.sort_stats(sort_name)
          self.assertEqual(
              self.stats.sort_type,
              self.stats.sort_arg_dict_default[sort_name][-1],
          )
  
imports: import unittest
  from test import support
  from io import StringIO
  from pstats import SortKey
  from enum import StrEnum, _test_simple_enum
  import os
  import pstats
  import tempfile
  import cProfile
label_desc: Use image node_id 7 for calling the StatsTestCase obj's underlying member method code with example usage: obj.test_sort_stats_string() without return types