code: def call(self, attr_name, value):
      if value not in self.options:
          raise ValueError(
              f"{attr_name} must be one of {self.options!r} (got {value!r})"
          )
  
imports: from abc import ABC, abstractmethod
  from typing import TypeVar, Union
label_desc: Use image node_id 2 for calling the OneOf obj's underlying member method code with example usage: obj.call(attr_name, value) without return types