code: def __init__(self, weight: int, ratio: float = None):
      self.weight = weight
      self.ratio = ratio or 1
  
imports: import array
  import asyncio
  import os
  import sys
  from typing import Dict, Union
  import pytest
  import requests
  import starlette.requests
  from ray import serve
  from ray.serve._private.deployment_graph_build import build
  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)