code: def flow(request, port_generator):
      exposed_port = port_generator()
      flow_src = request.param
      if flow_src == "yml":
          return Flow(port=exposed_port).load_config(
              os.path.join(cur_dir, "flow.yml")
          )
      elif flow_src == "python":
          return Flow(port=exposed_port).add(
              uses="docker://override-config-test",
              uses_with={"param1": 50, "param2": 30},
              uses_metas={"workspace": "different_workspace"},
          )
  
file_path: jina/tests/integration/override_config_params/container/test_override_config_params.py
imports: import os
  import time
  import pytest
  from jina import Flow, Document, Client
label_desc: Use image node_id 2 for calling a global function with example usage: flow(request, port_generator) and returns: Flow, Flow