code: def test_corrupt_read(datapath):
      # We don't really care about the exact failure, the important thing is
      # that the resource should be cleaned up afterwards (BUG #35566)
      fname = datapath("io", "sas", "data", "corrupt.sas7bdat")
      msg = "'SAS7BDATReader' object has no attribute 'row_count'"
      with pytest.raises(AttributeError, match=msg):
          pd.read_sas(fname)
  
imports: import contextlib
  from datetime import datetime
  import io
  import os
  from pathlib import Path
  import numpy
  import pytest
  from pandas.compat import IS64
  from pandas.errors import EmptyDataError
  import pandas.util._test_decorators
  import pandas
  import pandas._testing
  from pandas.io.sas.sas7bdat import SAS7BDATReader
label_desc: Use image node_id 14 for calling a global function with example usage: test_corrupt_read(datapath) without return types