code: def test_command_line_eval(name, command, sample_output_file):
      """Tests the command-line function, `textattack eval`.
  
      Different from other tests, this one compares the sample output file
      to *stderr* output of the evaluation.
      """
      desired_text = open(sample_output_file).read().strip()
      desired_text_lines = desired_text.split("\n")
  
      # Run command and validate outputs.
      result = run_command_and_get_result(command)
  
      assert result.stdout is not None
      assert result.stderr is not None
  
      stdout = result.stdout.decode().strip()
      print("stdout =>", stdout)
      stderr = result.stderr.decode().strip()
      print("stderr =>", stderr)
  
      print("desired_text =>", desired_text)
      stderr_lines = stderr.split("\n")
      assert desired_text_lines <= stderr_lines
  
      assert result.returncode == 0
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_command_line_eval(name, command, sample_output_file) without return types