def chunk(self, chunks=None, name=None, lock=False):
        import dask.array as da

        if utils.is_dict_like(chunks):
            chunks = dict((self.get_axis_num(dim), chunk)
                          for dim, chunk in chunks.items())

        if chunks is None:
            chunks = self.chunks or self.shape

        data = self._data
        if isinstance(data, da.Array):
            data = data.rechunk(chunks)
        else:
            if utils.is_dict_like(chunks):
                chunks = tuple(chunks.get(n, s)
                               for n, s in enumerate(self.shape))
            data = da.from_array(data, chunks, name=name, lock=lock)

        return type(self)(self.dims, data, self._attrs, self._encoding,
                          fastpath=True)
<variable> = <value> in <command>
dataset/ETHPy150Open pydata/xarray/xarray/core/variable.py/Variable.chunk--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/plugins/Utilities/plugin.py/Utilities.let