code: def _broadcast_trick_inner(func, shape, meta=(), *args, **kwargs):
      # cupy-specific hack. numpy is happy with hardcoded shape=().
      null_shape = () if shape == () else 1
  
      return np.broadcast_to(
          func(meta, *args, shape=null_shape, **kwargs), shape
      )
  
file_path: dask/dask/array/wrap.py
imports: from __future__ import annotations
  from functools import partial
  from itertools import product
  import numpy
  from tlz import curry
  from dask.array.backends import array_creation_dispatch
  from dask.array.core import Array, normalize_chunks
  from dask.array.utils import meta_from_array
  from dask.base import tokenize
  from dask.blockwise import blockwise
  from dask.layers import ArrayChunkShapeDep
  from dask.utils import funcname
label_desc: Use image node_id 5 for calling a global function with example usage: _broadcast_trick_inner(func, shape, meta) and returns: np