code: def _sort_tests(items):
      """Sort tests by file/function.
  
      By default, pytest will sort tests to maximize the re-use of
      fixtures.  However, this assumes that all fixtures have an equal
      cost to generate, and no caches outside of those managed by
      pytest.  A tvm.testing.parameter is effectively free, while
      reference data for testing may be quite large.  Since most of the
      TVM fixtures are specific to a python function, sort the test
      ordering by python function, so that
      tvm.testing.utils._fixture_cache can be cleared sooner rather than
      later.
  
      Should be called from pytest_collection_modifyitems.
  
      """
  
      def sort_key(item):
          filename, lineno, test_name = item.location
          test_name = test_name.split("[")[0]
          return filename, lineno, test_name
  
      items.sort(key=sort_key)
  
file_path: tvm/python/tvm/testing/plugin.py
imports: import pytest
  import _pytest
  import tvm
  from tvm.testing import utils
label_desc: Use image node_id 11 for calling a global function with example usage: _sort_tests(items) and returns: filename,  lineno,  test_name