<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dynamic_field_type(self, dynamic_field_type):
 """Sets the dynamic_field_type of this DashboardParameterValue. :param dynamic_field_type: The dynamic_field_type of this DashboardParameterValue. # noqa: E501 :type: str """

        allowed_values = ["SOURCE", "SOURCE_TAG", "METRIC_NAME", "TAG_KEY", "MATCHING_SOURCE_TAG"]  # noqa: E501
        if dynamic_field_type not in allowed_values:
            raise ValueError(
                "Invalid value for `dynamic_field_type` ({0}), must be one of {1}"  # noqa: E501
                .format(dynamic_field_type, allowed_values)
            )

        self._dynamic_field_type = dynamic_field_type