code: def test_sort_stats_partial(self):
      sortkey = "filename"
      for sort_name in [
          "f",
          "fi",
          "fil",
          "file",
          "filen",
          "filena",
          "filenam",
          "filename",
      ]:
          self.stats.sort_stats(sort_name)
          self.assertEqual(
              self.stats.sort_type,
              self.stats.sort_arg_dict_default[sortkey][-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 8 for calling the StatsTestCase obj's underlying member method code with example usage: obj.test_sort_stats_partial() without return types