code: def run_v0_app(fetch_logs, view_page):
      def check_content(button_name, text_content):
          button = view_page.locator(
              f'button:has-text("{button_name}")'
          )
          button.wait_for(timeout=3 * 1000)
          button.click()
          view_page.reload()
          locator = view_page.frame_locator("iframe").locator("div")
          locator.wait_for(timeout=3 * 1000)
          assert text_content in " ".join(locator.all_text_contents())
          print(f"Validated {button_name}")
          return True
  
      wait_for(
          view_page, check_content, "TAB_1", "Hello from component A"
      )
      wait_for(
          view_page, check_content, "TAB_2", "Hello from component B"
      )
      has_logs = False
      while not has_logs:
          for log in fetch_logs(["flow"]):
              print(log)
              if "'a': 'a', 'b': 'b'" in log:
                  has_logs = True
          sleep(1)
  
imports: import os
  from time import sleep
  from typing import Tuple
  from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from lightning.app import LightningApp
  from lightning.app.runners import CloudRuntime
  from lightning.app.testing import EmptyFlow
  from lightning.app.testing.testing import LightningTestApp, application_testing, run_app_in_cloud, wait_for
  from lightning.app.utilities.enum import AppStage
  from lightning.app.utilities.load_app import load_app_from_file
  from integrations_app.public import _PATH_EXAMPLES
label_desc: Use image node_id 2 for calling a global function with example usage: run_v0_app(fetch_logs, view_page) and returns: True