code: def test_ascent(self):
      assert_equal(ascent().shape, (512, 512))
  
      # hash check
      assert _has_hash(
          os.path.join(data_dir, "ascent.dat"), registry["ascent.dat"]
      )
  
file_path: scipy/scipy/datasets/tests/test_data.py
imports: from scipy.datasets._registry import registry
  from scipy.datasets._fetchers import data_fetcher
  from scipy.datasets._utils import _clear_cache
  from scipy.datasets import ascent, face, electrocardiogram, download_all
  from numpy.testing import assert_equal, assert_almost_equal
  import os
  import pytest
label_desc: Use image node_id 3 for calling the TestDatasets obj's underlying member method code with example usage: obj.test_ascent() without return types