code: def __init__(self, config: RouteConfig) -> None:
      super().__init__(config)
      if config.model.config is None or not isinstance(
          config.model.config, MosaicMLConfig
      ):
          raise TypeError(
              f"Unexpected config type {config.model.config}"
          )
      self.mosaicml_config: MosaicMLConfig = config.model.config
  
file_path: mlflow/mlflow/gateway/providers/mosaicml.py
imports: import time
  from contextlib import contextmanager
  from typing import Any, Dict, List
  from fastapi import HTTPException
  from fastapi.encoders import jsonable_encoder
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.config import MosaicMLConfig, RouteConfig
  from mlflow.gateway.providers.base import BaseProvider
  from mlflow.gateway.providers.utils import rename_payload_keys, send_request
  from mlflow.gateway.schemas import chat, completions, embeddings
label_desc: Use image node_id 1 to create a new MosaicMLProvider object from inherited base classes: BaseProvider with example: obj = MosaicMLProvider(config)