code: def test_infer_channel_first(
      data: np.ndarray, expected: Union[float, dict, bool]
  ):
      if "exception" in expected:
          with pytest.raises(expected["exception"]):
              infer_channel_first(data["x"])
          return
      out = infer_channel_first(data["x"])
      assert out == expected["value"], "Test failed."
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.helpers.utils import *
label_desc: Use image node_id 28 for calling a global function with example usage: test_infer_channel_first(data, expected) without return types