code: def get_model_config(model: type[pydantic.BaseModel]) -> Any:
      if PYDANTIC_V2:
          return model.model_config
      return model.__config__
  
file_path: openai-python/src/openai/_compat.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Union, TypeVar, cast
  from datetime import date, datetime
  import pydantic
  from pydantic.fields import FieldInfo
  from ._types import StrBytesIntFloat
label_desc: Use image node_id 5 for calling a global function with example usage: get_model_config(model) and returns: model, model