def METHOD_NAME() -> typing.Tuple[int, int]:
    try:
        with open(".config", "r") as json_file:
            cfg = json.load(json_file)
    except (IOError, OSError, json.decoder.JSONDecodeError) as err:
        print("Open/parsing .config failed. Please re-attach")
        sys.exit(err)
    nand_align = spinand_align = 0
    for key in cfg.keys():
        if key == 'nand_align':
            nand_align = int(cfg['nand_align'])
        elif key == 'spinand_align':
            spinand_align = int(cfg['spinand_align'])
    return nand_align, spinand_align