class_docstr: Annotated enum type.
docstr: Create an enum member from a string, int, etc.
  
  Parameters
  ----------
  value : int | str | AnnotatedIntEnum
      The value used to determine the corresponding enum member.
  
  Returns
  -------
  AnnotatedIntEnum
      The enum member matching the specified value.
  
  Raises
  ------
  ValueError
      If there is no enum member matching the specified value.
docstr_tok: ["Create","an","enum","member","from","a","string",",","int",",","etc",".","Parameters","--","--","--","--","--","value",":","int","|","str","|","AnnotatedIntEnum","The","value","used","to","determine","the","corresponding","enum","member",".","Returns","--","--","--","-","AnnotatedIntEnum","The","enum","member","matching","the","specified","value",".","Raises","--","--","--","ValueError","If","there","is","no","enum","member","matching","the","specified","value","."]
code: def from_any(cls: Type[T], value: Union[T, int, str]) -> T:
      """Create an enum member from a string, int, etc.
  
      Parameters
      ----------
      value : int | str | AnnotatedIntEnum
          The value used to determine the corresponding enum member.
  
      Returns
      -------
      AnnotatedIntEnum
          The enum member matching the specified value.
  
      Raises
      ------
      ValueError
          If there is no enum member matching the specified value.
      """
      if isinstance(value, cls):
          return value
      elif isinstance(value, int):
          return cls(value)  # type: ignore
      elif isinstance(value, str):
          return cls.from_str(value)
      else:
          raise ValueError(
              f"{cls.__name__} has no value matching {value}"
          )
  
imports: from collections.abc import Sequence
  import enum
  from functools import lru_cache
  import importlib
  import sys
  import threading
  import traceback
  from typing import Type, TypeVar, Union
  import warnings
  import numpy
  from .._typing_core import Vector
label_desc: Use image node_id 3 for calling the AnnotatedIntEnum obj's underlying member method code with example usage: obj.from_any(cls, value) and returns: value, cls, cls