def METHOD_NAME(self, yellow_low, yellow_high):
    params = self.parser.parameters
    # Since our initial parameter check verifies between 7 and 9 we do a
    # special check for 8 parameters which is an error
    if len(params) == 8:
        raise self.parser.error(
            "Must give both a green low and green high value.", self.usage
        )
    if not len(params) == 9:
        return []
    try:
        err = "green low"
        green_low = float(params[7])
        err = "green high"
        green_high = float(params[8])
    except ValueError as error:
        raise self.parser.error(
            f"Invalid {err} limit value. Limits can be integers or floats.",
            self.usage,
        ) from error
    if (
        (yellow_low > green_low)
        or (green_low >= green_high)
        or (green_high > yellow_high)
    ):
        raise self.parser.error(
            "Invalid limits specified. Ensure green limits are within yellow limits.",
            self.usage,
        )
    return [green_low, green_high]