code: def get_document(i, name):
      t = time.time()
      print(
          f"in {name} {i}, time: {readable_time_from(t)}, {t}",
          flush=True,
      )
      return Document(id=f"id-{i}", tags={"input_gen": t})
  
imports: import asyncio
  import copy
  import multiprocessing
  import os
  import time
  from datetime import datetime
  from functools import partial
  from typing import Dict, List
  import pytest
  from docarray import Document, DocumentArray
  from jina.clients import Client
  from jina.helper import random_port
  from jina.parsers import set_gateway_parser
  from jina.serve import networking
  from jina.serve.runtimes.asyncio import AsyncNewLoopRuntime
  from jina.serve.runtimes.gateway.request_handling import GatewayRequestHandler
label_desc: Use image node_id 5 for calling a global function with example usage: get_document(i, name) and returns: Document