code: def get_random_number():
      global n_calls
      if n_calls == 1:
          n_calls += 1
          raise gr.Error("This is a gradio error")
      n_calls += 1
      time.sleep(5)
      return random.randrange(1, 10)
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_random_number() and returns: random