code: def check_supported_model_task_pair(model_type: str, task: str):
      model_type = model_type.lower()
      if model_type not in APIFeaturesManager._SUPPORTED_MODEL_TYPE:
          raise KeyError(
              f"{model_type} is not supported yet. "
              f"Only {list(APIFeaturesManager._SUPPORTED_MODEL_TYPE.keys())} are supported. "
              f"If you want to support {model_type} please propose a PR or open up an issue."
          )
      elif (
          task
          not in APIFeaturesManager._SUPPORTED_MODEL_TYPE[model_type]
      ):
          raise KeyError(
              f"{task} is not supported yet for model {model_type}. "
              f"Only {APIFeaturesManager._SUPPORTED_MODEL_TYPE[model_type]} 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 1 for calling the APIFeaturesManager obj's underlying member method code with example usage: obj.check_supported_model_task_pair(model_type, task) without return types