code: def _maybe_start_instance(instance):
    
  
    if not instance:
      return
  
    if instance.state['Name'] == 'stopped':
      instance.start()
      while True:
        print(f"Waiting  for {instance} to start.")
        instance.reload()
        if instance.state['Name'] == 'running':
          break
        time.sleep(10)
docs: Starts instance if it's stopped, no-op otherwise.