def get_hue_range(self, color_input: Optional[HueType]) -> Tuple[int, int]:
        """Return the hue range for a given ``color_input``."""
        if color_input is None:
            return 0, 360

        if isinstance(color_input, (int, float)) and 0 <= color_input <= 360:
            color_input = int(color_input)
            return color_input, color_input

        if isinstance(color_input, str) and color_input in self.colormap:
            return self.colormap[color_input]["hue_range"][0]

        color_input = self._validate_color_input(color_input)

        v1 = int(color_input[0])
        v2 = int(color_input[1])

        if v2 < v1:
            v1, v2 = v2, v1
        v1 = max(v1, 0)
        v2 = min(v2, 360)
        return v1, v2
Return the hue range for a given ``color_input``.
faker/providers/color/color.py