def METHOD_NAME():
    adios_io = adios2.ADIOS()
    io = adios_io.DeclareIO("reader")
    logging.info(" Reader: initiating erroneous reading ")
    reader = io.Open("testdatafile", adios2.Mode.Read)
    while True:
        stepStatus = reader.BeginStep()
        if stepStatus == adios2.StepStatus.OK:
            # inquire for variable
            recvar = io.InquireVariable("np_data")
            if recvar:
                got_exception = 0
                # determine the shape of the data that will be sent
                bufshape = recvar.Shape()
                typ = recvar.Type()
                logging.info("        Incoming variable type is " + typ)
                # allocate buffer for new numpy
                data = np.ones(bufshape)
                logging.info(f"        receive buffer  dtype: {data.dtype!s}")
                try:
                    reader.Get(recvar, data, adios2.Mode.Sync)
                except Exception as e:
                    got_exception = 1
                    logging.info(str(e))
                if not got_exception:
                    raise Exception("Didn't get an exception as expected")
                else:
                    logging.info("        Got expected exception")
            else:
                raise ValueError("InquireVariable failed")
        elif stepStatus == adios2.StepStatus.EndOfStream:
            break
        else:
            raise StopIteration(f"next step failed to initiate {stepStatus!s}")
        reader.EndStep()
    reader.Close()
    logging.info(" Reader: finished reading",)