code: def test_router_get_available_deployments():
      """
      Test if routers 'get_available_deployments' returns the least busy deployment
      """
      model_list = [
          {
              "model_name": "azure-model",
              "litellm_params": {
                  "model": "azure/gpt-turbo",
                  "api_key": "os.environ/AZURE_FRANCE_API_KEY",
                  "api_base": "https://openai-france-1234.openai.azure.com",
                  "rpm": 1440,
              },
              "model_info": {"id": 1},
          },
          {
              "model_name": "azure-model",
              "litellm_params": {
                  "model": "azure/gpt-35-turbo",
                  "api_key": "os.environ/AZURE_EUROPE_API_KEY",
                  "api_base": "https://my-endpoint-europe-berri-992.openai.azure.com",
                  "rpm": 6,
              },
              "model_info": {"id": 2},
          },
      ]
      router = Router(
          model_list=model_list,
          routing_strategy="usage-based-routing",
          set_verbose=False,
          num_retries=3,
      )  # type: ignore
  
      ## DEPLOYMENT 1 ##
      deployment_id = 1
      kwargs = {
          "litellm_params": {
              "metadata": {
                  "model_group": "azure-model",
              },
              "model_info": {"id": 1},
          }
      }
      start_time = time.time()
      response_obj = {"usage": {"total_tokens": 50}}
      end_time = time.time()
      router.lowesttpm_logger.log_success_event(
          response_obj=response_obj,
          kwargs=kwargs,
          start_time=start_time,
          end_time=end_time,
      )
      ## DEPLOYMENT 2 ##
      deployment_id = 2
      kwargs = {
          "litellm_params": {
              "metadata": {
                  "model_group": "azure-model",
              },
              "model_info": {"id": 2},
          }
      }
      start_time = time.time()
      response_obj = {"usage": {"total_tokens": 20}}
      end_time = time.time()
      router.lowesttpm_logger.log_success_event(
          response_obj=response_obj,
          kwargs=kwargs,
          start_time=start_time,
          end_time=end_time,
      )
  
      ## CHECK WHAT'S SELECTED ##
      # print(router.lowesttpm_logger.get_available_deployments(model_group="azure-model"))
      assert (
          router.get_available_deployment(model="azure-model")[
              "model_info"
          ]["id"]
          == 2
      )
  
file_path: litellm/litellm/tests/test_tpm_rpm_routing.py
imports: import sys, os, asyncio, time, random
  from datetime import datetime
  import traceback
  from dotenv import load_dotenv
  import os
  import pytest
  from litellm import Router
  import litellm
  from litellm.router_strategy.lowest_tpm_rpm import LowestTPMLoggingHandler
  from litellm.caching import DualCache
label_desc: Use image node_id 3 for calling a global function with example usage: test_router_get_available_deployments() without return types