code: def save_reference():
      """
      This saves the output (or exception type) of running makeARGB for every combo of arguments. The
      output isn't fit for immediate inclusion in this file as EXPECTED_OUTPUTS, and needs some replace-all
      work.
      """
      with open("_unformatted_expected_outputs_", "w") as tmp_file:
  
          def write_expectation_to_file(
              data, key, levels, lut, scale, use_rgba
          ):
              try:
                  output, alpha = _makeARGB(
                      data,
                      lut=lut,
                      levels=levels,
                      scale=scale,
                      useRGBA=use_rgba,
                  )
              except Exception as e:
                  tmp_file.write(f"{key!r}: {type(e)}\n")
              else:
                  tmp_file.write(f"{key!r}: {output!r},\n")
  
          _do_something_for_every_combo(write_expectation_to_file)
  
file_path: pyqtgraph/tests/test_makeARGB.py
imports: import sys
  from typing import Any, Dict, Type, Union
  import numpy
  import pytest
  from pyqtgraph import getConfigOption, getCupy, setConfigOption
  from pyqtgraph.functions import makeARGB
label_desc: Use image node_id 4 for calling a global function with example usage: save_reference() without return types