code: def _update_version_in_provider_yaml(
      provider_package_id: str,
      type_of_change: TypeOfChange,
  ) -> tuple[bool, bool]:
      """
      Updates provider version based on the type of change selected by the user
      :param type_of_change: type of change selected
      :param provider_package_id: provider package
      :return: tuple of two bools: (with_breaking_change, maybe_with_new_features)
      """
      provider_details = get_provider_details(provider_package_id)
      version = provider_details.versions[0]
      v = semver.VersionInfo.parse(version)
      with_breaking_changes = False
      maybe_with_new_features = False
      if type_of_change == TypeOfChange.BREAKING_CHANGE:
          v = v.bump_major()
          with_breaking_changes = True
          # we do not know, but breaking changes may also contain new features
          maybe_with_new_features = True
      elif type_of_change == TypeOfChange.FEATURE:
          v = v.bump_minor()
          maybe_with_new_features = True
      elif type_of_change == TypeOfChange.BUGFIX:
          v = v.bump_patch()
      provider_yaml_path = (
          get_source_package_path(provider_package_id) / "provider.yaml"
      )
      original_text = provider_yaml_path.read_text()
      new_text = re.sub(
          r"versions:", f"versions:\n  - {v}", original_text, 1
      )
      provider_yaml_path.write_text(new_text)
      get_console().print(f"[special]Bumped version to {v}\n")
      return with_breaking_changes, maybe_with_new_features
  
imports: from __future__ import annotations
  import difflib
  import os
  import random
  import re
  import subprocess
  import sys
  import tempfile
  from copy import deepcopy
  from enum import Enum
  from pathlib import Path
  from shutil import copyfile
  from time import time
  from typing import Any, NamedTuple
  import jinja2
  import semver
  from rich.syntax import Syntax
  from airflow_breeze.utils.black_utils import black_format
  from airflow_breeze.utils.confirm import Answer, user_confirm
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.packages import HTTPS_REMOTE, ProviderPackageDetails, get_provider_details, get_provider_jinja_context, get_source_package_path, refresh_provider_metadata_from_yaml_file, refresh_provider_metadata_with_provider_id, render_template
  from airflow_breeze.utils.run_utils import run_command
  from airflow_breeze.utils.shared_options import get_verbose
  from airflow_breeze.utils.versions import get_version_tag
label_desc: Use image node_id 8 for calling a global function with example usage: _update_version_in_provider_yaml(provider_package_id, type_of_change) and returns: with_breaking_changes,  maybe_with_new_features