code: def from_str(self: Type[T], member: str) -> T:  # type: ignore[misc]
      try:
          return self[member]
      except KeyError:
          # TODO: use `add_suggestion` from torchvision.prototype.utils._internal to improve the error message as
          #  soon as it is migrated.
          raise ValueError(
              f"Unknown value '{member}' for {self.__name__}."
          ) from None
  
file_path: vision/torchvision/_utils.py
imports: import enum
  from typing import Sequence, Type, TypeVar
label_desc: Use image node_id 1 for calling the StrEnumMeta obj's underlying member method code with example usage: obj.from_str(member) and returns: self