code: def _sort_types(types: Iterable[type]) -> List[type]:
      """
      pytest-split requires that test parameters are always in the same
      order between runs. This function ensures that collections of types
      used in test parameters are ordered.
      """
      return sorted(types, key=str)
  
imports: from copy import copy, deepcopy
  from typing import Any, Iterable, List
  import numpy
  import pytest
  from pennylane.data.attributes import DatasetArray, DatasetList, DatasetNone, DatasetOperator, DatasetScalar, DatasetSparseArray, DatasetString, DatasetTuple
  from pennylane.data.base.attribute import UNSET, AttributeInfo, DatasetAttribute, attribute, match_obj_type
  from pennylane.data.base.hdf5 import HDF5Group, create_group
label_desc: Use image node_id 1 for calling a global function with example usage: _sort_types(types) and returns: sorted