code: def __contains__(self, other: TKEnum[Enum]) -> bool:  # type: ignore[override]
      if isinstance(other, str):
          return any(val.name.upper() == other.upper() for val in self)
  
      elif isinstance(other, int):
          return any(val.value == other for val in self)
  
      return any(val == other for val in self)
  
imports: from enum import Enum, EnumMeta
  from typing import Iterator, Type, TypeVar, Union
  import torch
  from kornia.core import Tensor
label_desc: Use image node_id 2 for calling the _KORNIA_EnumMeta obj's underlying member method code with example usage: obj.__contains__(other) and returns: any, any, any