code: def test_apply():
      def f(a, b, c=1, d=2):
          return a + b + c + d
  
      assert (
          apply(
              f,
              (
                  1,
                  2,
              ),
          )
          == 6
      )
      assert (
          apply(
              f,
              (
                  1,
                  2,
              ),
              dict(c=3),
          )
          == 8
      )
  
file_path: datashader/datashader/tests/test_utils.py
imports: from __future__ import annotations
  import numpy
  from xarray import DataArray
  from datashader.datashape import dshape
  from datashader.utils import Dispatcher, apply, calc_res, isreal, orient_array
label_desc: Use image node_id 3 for calling a global function with example usage: test_apply() and returns: unknown