code: def _validate_named(self, value, named_values):
      if value not in named_values:
          raise TypeError(
              "expected value to be one of", str(list(named_values))
          )
  
imports: import collections
label_desc: Use image node_id 4 for calling the Format obj's underlying member method code with example usage: obj._validate_named(value, named_values) without return types