<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sparkline_display_horizontal_position(self, sparkline_display_horizontal_position):
 """Sets the sparkline_display_horizontal_position of this ChartSettings. For the single stat view, the horizontal position of the displayed text # noqa: E501 :param sparkline_display_horizontal_position: The sparkline_display_horizontal_position of this ChartSettings. # noqa: E501 :type: str """

        allowed_values = ["MIDDLE", "LEFT", "RIGHT"]  # noqa: E501
        if sparkline_display_horizontal_position not in allowed_values:
            raise ValueError(
                "Invalid value for `sparkline_display_horizontal_position` ({0}), must be one of {1}"  # noqa: E501
                .format(sparkline_display_horizontal_position, allowed_values)
            )

        self._sparkline_display_horizontal_position = sparkline_display_horizontal_position