code: def check_metadata(self, value: Union[str, List[str]]) -> None:
      if self.values is None:
          return
  
      values = value
      if isinstance(values, str):
          values = [value]
  
      for v in values:
          if v not in self.values:
              raise ValueError(f"'{v}' is not an allowed term.")
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Generic, List, Literal, Optional, TypeVar, Union
  from argilla.server.enums import MetadataPropertyType
  from argilla.server.pydantic_v1 import BaseModel, Field
  from argilla.server.pydantic_v1.generics import GenericModel
label_desc: Use image node_id 1 for calling the TermsMetadataPropertySettings obj's underlying member method code with example usage: obj.check_metadata(value) without return types