code: def test_normalise_by_max(
      data: np.ndarray, params: dict, expected: Union[float, dict, bool]
  ):
      out = normalise_by_max(a=data, **params)
      assert np.all(
          out == expected
      ), f"Test failed. (expected: {expected}, is: {out})"
  
file_path: Quantus/tests/functions/test_normalise_func.py
imports: from typing import Union
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.functions.normalise_func import *
label_desc: Use image node_id 12 for calling a global function with example usage: test_normalise_by_max(data, params, expected) without return types