code: def test_scale_from_zero_min_replica():
      auto_scaler = AutoScaler(
          EmptyWork,
          min_replicas=0,
          max_replicas=2,
          max_batch_size=10,
      )
  
      resp = auto_scaler.scale(
          0, {"pending_requests": 0, "pending_works": 0}
      )
      assert resp == 0
  
      resp = auto_scaler.scale(
          0, {"pending_requests": 1, "pending_works": 0}
      )
      assert resp == 1
  
      resp = auto_scaler.scale(
          0, {"pending_requests": 1, "pending_works": 1}
      )
      assert resp <= 0
  
imports: import time
  import uuid
  from unittest import mock
  from unittest.mock import patch
  import pytest
  from fastapi import HTTPException
  from lightning.app import CloudCompute, LightningWork
  from lightning.app.components import AutoScaler, ColdStartProxy, Text
  from lightning.app.components.serve.auto_scaler import _LoadBalancer
label_desc: Use image node_id 4 for calling a global function with example usage: test_scale_from_zero_min_replica() without return types