code: def test_WriteGear_customFFmpeg(ffmpeg_cmd, logging, output_params):
      """
      Testing WriteGear Compression-Mode(FFmpeg) custom FFmpeg Pipeline by seperating audio from video
      """
      writer = None
      try:
          # define writer
          writer = WriteGear(
              output="Output.mp4",
              compression_mode=(
                  True if ffmpeg_cmd != ["invalid"] else False
              ),
              logging=logging,
              **output_params,
          )  # Define writer
  
          # execute FFmpeg command
          writer.execute_ffmpeg_cmd(ffmpeg_cmd)
          writer.close()
          # assert audio file is created successfully
          if (
              ffmpeg_cmd
              and isinstance(ffmpeg_cmd, list)
              and "-acodec" in ffmpeg_cmd
          ):
              assert os.path.isfile("input_audio.aac")
      except Exception as e:
          if isinstance(e, AssertionError):
              pytest.fail(str(e))
          elif isinstance(e, (ValueError, RuntimeError)):
              pytest.xfail("Test Passed!")
          else:
              logger.exception(str(e))
  
imports: import os
  import re
  import cv2
  import pytest
  import logging
  import platform
  import tempfile
  import subprocess
  from six import string_types
  from deffcode import FFdecoder
  from vidgear.gears import WriteGear
  from vidgear.gears.helper import check_output, logger_handler
label_desc: Use image node_id 10 for calling a global function with example usage: test_WriteGear_customFFmpeg(ffmpeg_cmd, logging, output_params) without return types