def coord_list(coords: tuple) -> list[tuple[int, int]]:
    """Convert a tuple of coordinates to a list of coordinates.

    Useful for converting the output of np.where to a list of coordinates.

    Args:
        coords(tuple): Tuple of coordinates.

    Returns:
        List of coordinates.
    """
    res = []
    size = range(len(coords[0]))
    for idx in size:
        x_coord = int(coords[0][idx])
        y_coord = int(coords[1][idx])
        res.append((x_coord, y_coord))
    return res