def METHOD_NAME(self, dsid):
    """Check if the variable corresponding to this dataset is listed as variable with swath coordinates."""
    # since the patterns are compiled to regex we use the search() method below to find matches
    with_swath_coords = any([p.search(dsid['name']) is not None for p in self.swath_coordinates['patterns']])
    return with_swath_coords