code: def from_string(cls, value: str) -> "RunState":
      try:
          return cls(value.capitalize())
      except ValueError as e:
          raise NeptuneException(
              f"Can't map RunState to API: {value}"
          ) from e
  
imports: import enum
  from neptune.common.exceptions import NeptuneException
label_desc: Use image node_id 1 for calling the RunState obj's underlying member method code with example usage: obj.from_string(cls, value) and returns: cls