code: def _dask_array_with_chunks_hint(array, chunks):
      
      import dask.array as da
      if len(chunks) < array.ndim:
          raise ValueError('not enough chunks in hint')
      new_chunks = []
      for chunk, size in zip(chunks, array.shape):
          new_chunks.append(chunk if size > 1 else (1,))
      return da.from_array(array, new_chunks)
docs: Create a dask array using the chunks hint for dimensions of size > 1.