code: def get_client(serialize=not is_gradio_version4):
      from gradio_client import Client
  
      client = Client(get_inf_server(), serialize=serialize)
      if debug:
          print(client.view_api(all_endpoints=True))
      return client
  
imports: import ast
  import time
  import os
  import markdown
  import pytest
  from bs4 import BeautifulSoup
  from src.utils import is_gradio_version4
  from tests.utils import get_inf_server
label_desc: Use image node_id 1 for calling a global function with example usage: get_client(serialize) and returns: client