def create_from_discriminator_value(parse_node: ParseNode) -> GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse:
        """
        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse
        """
        if parse_node is None:
            raise TypeError("parse_node cannot be null.")
        return GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse()

        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse
        
msgraph/generated/drives/item/items/item/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval/get_activities_by_interval_with_start_date_time_with_end_date_time_with_interval_get_response.py