code: def get_client(session: Optional[str] = None) -> grc.Client:
      client = grc.Client("<<app-src>>", hf_token=os.getenv("HF_TOKEN"))
      if session:
          client.session_hash = session
      return client
  
file_path: gradio/client/python/gradio_client/templates/discord_chat.py
imports: import asyncio
  import os
  import threading
  from threading import Event
  from typing import Optional
  import discord
  import gradio
  from discord import Permissions
  from discord.ext import commands
  from discord.utils import oauth_url
  import gradio_client
  from gradio_client.utils import QueueError
label_desc: Use image node_id 1 for calling a global function with example usage: get_client(session) and returns: client