def METHOD_NAME(self, chamber=None):
    chambers = [chamber] if chamber is not None else ["upper", "lower"]
    for chamber in chambers:
        yield from getattr(self, "scrape_" + chamber + "_chamber")()