code: def file_to_stream(self, file_path, stream_path):
      cmd = (
          ["java"]
          + self._java_opts
          + [
              "-cp",
              _ARROW_TOOLS_JAR,
              "org.apache.arrow.tools.FileToStream",
              file_path,
              stream_path,
          ]
      )
      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 6 for calling the JavaTester obj's underlying member method code with example usage: obj.file_to_stream(file_path, stream_path) without return types