code: def test_namedtuple(tup):
      A = da.random.default_rng().random((20, 20), chunks=(10, 10))
  
      def f(data, x):
          return data
  
      B = da.blockwise(
          f, ("d1", "d2"), A, ("d1", "d2"), x=tup, dtype=A.dtype
      )
  
      assert_eq(A, B)
  
imports: from __future__ import annotations
  import collections
  from operator import add
  import numpy
  import pytest
  import dask
  import dask.array
  from dask.array.utils import assert_eq
  from dask.blockwise import _BLOCKWISE_DEFAULT_PREFIX, Blockwise, _unique_dep, index_subs, optimize_blockwise, rewrite_blockwise
  from dask.highlevelgraph import HighLevelGraph
  from dask.utils_test import dec, hlg_layer_topological, inc
label_desc: Use image node_id 27 for calling a global function with example usage: test_namedtuple(tup) and returns: data