code: def log_pre_api_call(self, model, messages, kwargs):
      print(f"Pre-API Call")
      print(
          f"previous_models: {kwargs['litellm_params']['metadata']['previous_models']}"
      )
      self.previous_models += len(
          kwargs["litellm_params"]["metadata"]["previous_models"]
      )  # {"previous_models": [{"model": litellm_model_name, "exception_type": AuthenticationError, "exception_string": <complete_traceback>}]}
      print(f"self.previous_models: {self.previous_models}")
  
file_path: litellm/litellm/tests/test_router_policy_violation.py
imports: import sys, os, time
  import traceback, asyncio
  import pytest
  import litellm
  from litellm import Router
  from litellm.integrations.custom_logger import CustomLogger
label_desc: Use image node_id 1 for calling the MyCustomHandler obj's underlying member method code with example usage: obj.log_pre_api_call(model, messages, kwargs) without return types