code: def wait(self, health_check=False):
      if health_check:
          while not self.health_check_ready:
              time.sleep(0.1)
      else:
          while not self.ready:
              time.sleep(0.1)
  
file_path: ray/python/ray/serve/tests/test_config_files/pid.py
imports: import asyncio
  import os
  import time
  from ray import serve
label_desc: Use image node_id 3 for calling the f obj's underlying member method code with example usage: obj.wait(health_check) without return types