diff --git a/sparse/_common.py b/sparse/_common.py
index 913000d..59471fd 100644
--- a/sparse/_common.py
+++ b/sparse/_common.py
@@ -329,7 +329,7 @@ def zeros_like(a, dtype=None, format=None, compressed_axes=None):
     """
     if format is None and not isinstance(a, np.ndarray):
         format = type(a).__name__.lower()
-    else:
+    elif format is None:
         format = "coo"
     if hasattr(a, "compressed_axes") and compressed_axes is None:
         compressed_axes = a.compressed_axes

zeros_like return COO format even if DOK is asked
### Bug description

Maybe it is normal behavior but imho it shoud not be. `zeros_like` function return COO format even if DOK is asked.

### Example

```
In[1]: import numpy as np
In[2]: import sparse as sp
In[3]: a = np.random.random((10,10,10))
In[4]: s = sp.zeros_like(a, format='dok')
In[5]: s
Out[5]: <COO: shape=(10, 10, 10), dtype=float64, nnz=0, fill_value=0.0>
```
Note that even starting from a COO and asking for a DOK doesn't work:

```
In[6]: d = sp.zeros_like(s, format='dok')
In[7]: d
Out[7]: <COO: shape=(10, 10, 10), dtype=float64, nnz=0, fill_value=0.0>
```

### Expected behavior

 `zeros_like` should return DOK format if DOK format is asked.

### System

 - OS and version: Ubuntu 18.04.4 LTS (kernel 5.3.0-62-generic)
-  Python 3.8.3
 - `sparse` version: 0.10.0 (from conda-forge)
 - NumPy version: 1.18.5
 - Numba version: 0.50.1

### Additional comment

I looked for a previous notice of this bug but found none. Sorry if it was already reported.
For the moment, I bypass this by using `zeros` (which works) instead.



diff --git a/sparse/tests/test_dok.py b/sparse/tests/test_dok.py
index e670684..1e0b210 100644
--- a/sparse/tests/test_dok.py
+++ b/sparse/tests/test_dok.py
@@ -158,3 +158,11 @@ def test_empty_dok_dtype():
     d = sparse.DOK(5, dtype=np.uint8)
     s = sparse.COO(d)
     assert s.dtype == d.dtype
+
+
+def test_zeros_like():
+    s = sparse.random((2, 3, 4), density=0.5)
+    s2 = sparse.zeros_like(s, format="dok")
+    assert s.shape == s2.shape
+    assert s.dtype == s2.dtype
+    assert isinstance(s2, sparse.DOK)

pip install -e .[tests]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
black==23.3.0
certifi @ file:///croot/certifi_1671487769961/work/certifi
click==8.1.8
cloudpickle==2.2.1
coverage==7.2.7
dask==2022.2.0
exceptiongroup==1.2.2
execnet==2.0.2
fsspec==2023.1.0
importlib-metadata==6.7.0
iniconfig==2.0.0
llvmlite==0.39.1
locket==1.0.0
mypy-extensions==1.0.0
numba==0.56.4
numpy==1.21.6
packaging==24.0
partd==1.4.1
pathspec==0.11.2
platformdirs==4.0.0
pluggy==1.2.0
pytest==7.4.4
pytest-asyncio==0.21.2
pytest-black==0.6.0
pytest-cov==4.1.0
pytest-mock==3.11.1
pytest-xdist==3.5.0
PyYAML==6.0.1
scipy==1.7.3
-e git+https://github.com/pydata/sparse.git@977e4c020b25d66b80b628e7cca7e393e3deb971#egg=sparse
toml==0.10.2
tomli==2.0.1
toolz==0.12.1
typed-ast==1.5.5
typing_extensions==4.7.1
zipp==3.15.0

name: sparse
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - black==23.3.0
      - click==8.1.8
      - cloudpickle==2.2.1
      - coverage==7.2.7
      - dask==2022.2.0
      - exceptiongroup==1.2.2
      - execnet==2.0.2
      - fsspec==2023.1.0
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - llvmlite==0.39.1
      - locket==1.0.0
      - mypy-extensions==1.0.0
      - numba==0.56.4
      - numpy==1.21.6
      - packaging==24.0
      - partd==1.4.1
      - pathspec==0.11.2
      - platformdirs==4.0.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - pytest-asyncio==0.21.2
      - pytest-black==0.6.0
      - pytest-cov==4.1.0
      - pytest-mock==3.11.1
      - pytest-xdist==3.5.0
      - pyyaml==6.0.1
      - scipy==1.7.3
      - toml==0.10.2
      - tomli==2.0.1
      - toolz==0.12.1
      - typed-ast==1.5.5
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/sparse

sparse/tests/test_dok.py::test_setitem[shape0-index0-0.19616091783046152] sparse/tests/test_dok.py::test_setitem[shape1-index1-0.8285965761181421] sparse/tests/test_dok.py::test_setitem[shape3-1-0.38766642762584913] sparse/tests/test_dok.py::test_setitem[shape4-index4-0.13605233822966767] sparse/tests/test_dok.py::test_setitem[shape5-index5-0.4994287233693041] sparse/tests/test_dok.py::test_setitem[shape9-index9-0.31440888536824285] sparse/tests/test_dok.py::test_setitem[shape11-index11-0.5872584479777823] sparse/tests/test_dok.py::test_setitem[shape13-index13-0.9652207783133755] sparse/tests/test_dok.py::test_zeros_like
sparse/tests/test_dok.py::black sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.1-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.3-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.5-shape2] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape0] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape1] sparse/tests/test_dok.py::test_random_shape_nnz[0.7-shape2] sparse/tests/test_dok.py::test_convert_to_coo sparse/tests/test_dok.py::test_convert_from_coo sparse/tests/test_dok.py::test_convert_from_numpy sparse/tests/test_dok.py::test_convert_to_numpy sparse/tests/test_dok.py::test_construct[2-data0] sparse/tests/test_dok.py::test_construct[shape1-data1] sparse/tests/test_dok.py::test_construct[shape2-data2] sparse/tests/test_dok.py::test_getitem[0.1-shape0] sparse/tests/test_dok.py::test_getitem[0.1-shape1] sparse/tests/test_dok.py::test_getitem[0.1-shape2] sparse/tests/test_dok.py::test_getitem[0.3-shape0] sparse/tests/test_dok.py::test_getitem[0.3-shape1] sparse/tests/test_dok.py::test_getitem[0.3-shape2] sparse/tests/test_dok.py::test_getitem[0.5-shape0] sparse/tests/test_dok.py::test_getitem[0.5-shape1] sparse/tests/test_dok.py::test_getitem[0.5-shape2] sparse/tests/test_dok.py::test_getitem[0.7-shape0] sparse/tests/test_dok.py::test_getitem[0.7-shape1] sparse/tests/test_dok.py::test_getitem[0.7-shape2] sparse/tests/test_dok.py::test_setitem[shape2-index2-value2] sparse/tests/test_dok.py::test_setitem[shape6-index6-value6] sparse/tests/test_dok.py::test_setitem[shape7-index7-value7] sparse/tests/test_dok.py::test_setitem[shape8-index8-value8] sparse/tests/test_dok.py::test_setitem[shape10-index10-value10] sparse/tests/test_dok.py::test_setitem[shape12-index12-value12] sparse/tests/test_dok.py::test_default_dtype sparse/tests/test_dok.py::test_int_dtype sparse/tests/test_dok.py::test_float_dtype sparse/tests/test_dok.py::test_set_zero sparse/tests/test_dok.py::test_asformat[coo] sparse/tests/test_dok.py::test_asformat[dok] sparse/tests/test_dok.py::test_coo_fv_interface sparse/tests/test_dok.py::test_empty_dok_dtype
sparse/_common.py
sparse/_common.py