code: def to_api(self) -> str:
      if self is RunState.active:
          return self._api_active.value
      if self is RunState.inactive:
          return self._api_inactive.value
  
imports: import enum
  from neptune.common.exceptions import NeptuneException
label_desc: Use image node_id 3 for calling the RunState obj's underlying member method code with example usage: obj.to_api() and returns: self, self