code: def flight_request(self, port, json_path=None, scenario_name=None):
      cmd = _FLIGHT_CLIENT_CMD + [f"-port={port}"]
      if json_path:
          cmd.extend(("-path", json_path))
      elif scenario_name:
          cmd.extend(("-scenario", scenario_name))
      else:
          raise TypeError(
              "Must provide one of json_path or scenario_name"
          )
  
      if self.debug:
          log(" ".join(cmd))
      run_cmd(cmd)
  
imports: import contextlib
  import functools
  import os
  import subprocess
  from .None import cdata
  from .tester import Tester, CDataExporter, CDataImporter
  from .util import run_cmd, log
  from ..utils.source import ARROW_ROOT_DEFAULT
label_desc: Use image node_id 7 for calling the CppTester obj's underlying member method code with example usage: obj.flight_request(port, json_path, scenario_name) without return types