def create_from_discriminator_value(parse_node: ParseNode) -> ImageWithWidthWithHeightWithFittingModeGetResponse:
        """
        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: ImageWithWidthWithHeightWithFittingModeGetResponse
        """
        if parse_node is None:
            raise TypeError("parse_node cannot be null.")
        return ImageWithWidthWithHeightWithFittingModeGetResponse()

        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: ImageWithWidthWithHeightWithFittingModeGetResponse
        
msgraph/generated/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/image_with_width_with_height_with_fitting_mode/image_with_width_with_height_with_fitting_mode_get_response.py