def METHOD_NAME(devid):
    """
    Selects and prepares DASD for test case
    :param devid: the ccw device id, e.g. 0.0.5200
    :return path: absolute path to block device, e.g. '/dev/dasda'
    """
    paths = SubchannelPaths()
    paths.get_info()
    device = None
    if devid:
        device = paths.get_device(devid)
    else:
        device = paths.get_first_unused_and_safely_removable()
    if not device:
        raise TestError("Couldn't find dasd device for test")
    global TEST_DASD_ID
    TEST_DASD_ID = device[paths.HEADER["Device"]]
    enable_disk(TEST_DASD_ID)
    disk_path = get_device_path(TEST_DASD_ID)
    wait_for(lambda: ccw.format_dasd(disk_path, None), 10, first=1.0)
    wait_for(lambda: ccw.make_dasd_part(disk_path, None), 10, first=1.0)
    return disk_path