class_docstr: Ordered version of `Enum`.
  
  As opposed to `IntEnum`, This class maintains other `Enum` invariants, such as
  not being comparable to other enumerations.
class_docstr_tok: ["Ordered","version","of","`","Enum","`",".","As","opposed","to","`","IntEnum","`",",","This","class","maintains","other","`","Enum","`","invariants",",","such","as","not","being","comparable","to","other","enumerations","."]
code: def __le__(self, other):
      if self.__class__ is other.__class__:
          return self.value <= other.value
      return NotImplemented
  
file_path: model-optimization/tensorflow_model_optimization/python/core/internal/tensor_encoding/utils/py_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import enum
  import numpy
  import six
  import tensorflow
  import tree
label_desc: Use image node_id 3 for calling the OrderedEnum obj's underlying member method code with example usage: obj.__le__(other) and returns: NotImplemented, unknown