code: def ordered(obj):
      """Helper function for dict comparison"""
      if isinstance(obj, dict):
          return sorted((k, ordered(v)) for k, v in obj.items())
      if isinstance(obj, list):
          return sorted(ordered(x) for x in obj)
      else:
          return obj
  
imports: from __future__ import absolute_import
  from sagemaker.feature_store.feature_definition import FeatureDefinition, FeatureTypeEnum, IntegralFeatureDefinition, FractionalFeatureDefinition, StringFeatureDefinition, VectorCollectionType, ListCollectionType, SetCollectionType
label_desc: Use image node_id 1 for calling a global function with example usage: ordered(obj) and returns: sorted, sorted, obj