code: def check_supported_task(task: str):
      if task not in APIFeaturesManager._SUPPORTED_TASKS:
          raise KeyError(
              f"{task} is not supported yet. "
              f"Only {APIFeaturesManager._SUPPORTED_TASKS} are supported. "
              f"If you want to support {task} please propose a PR or open up an issue."
          )
  
imports: import platform
  from dataclasses import field
  from enum import Enum
  from typing import Dict, List, Optional, Union
  from .None import is_pydantic_available
  from .doc import generate_doc_dataclass
label_desc: Use image node_id 2 for calling the APIFeaturesManager obj's underlying member method code with example usage: obj.check_supported_task(task) without return types