def METHOD_NAME(self, x_res, y_res):
    """ Check if the mask has the given resolution. """
    if self.img is not None:
        if (self.img.shape[0] == y_res) and (self.img.shape[1] == x_res):
            return True
        else:
            return False
    return None