code: def test_SparseTensorType_clone():
      st = SparseTensorType("csr", "float64", shape=(3, None))
      assert st == st.clone()
  
      st_clone = st.clone(format="csc")
      assert st_clone.format == "csc"
      assert st_clone.dtype == st.dtype
      assert st_clone.shape == st.shape
  
      st_clone = st.clone(shape=(2, 1))
      assert st_clone.format == st.format
      assert st_clone.dtype == st.dtype
      assert st_clone.shape == (2, 1)
  
file_path: pytensor/tests/sparse/test_type.py
imports: import pytest
  import scipy
  from pytensor.sparse import matrix
  from pytensor.sparse.type import SparseTensorType
  from pytensor.tensor import dmatrix
label_desc: Use image node_id 2 for calling a global function with example usage: test_SparseTensorType_clone() without return types