code: def __init__(self, weight: int, ratio: float = None):
      self.weight = weight
      self.ratio = ratio or 1
  
imports: import asyncio
  from typing import Dict, Union
  from ray import serve
  from ray.actor import ActorHandle
  from ray.serve.handle import DeploymentHandle
label_desc: Use image node_id 1 to create a new Model object  with example: obj = Model(weight, ratio)