code: def get_next_version(
      release_type,
  ) -> Tuple[Tuple[int, int, int], str, str]:
      current_ver = find_version("fairscale/version.py")
      version_list = [int(x) for x in current_ver.strip("'").split(".")]
      major, minor, patch = (
          version_list[0],
          version_list[1],
          version_list[2],
      )
      if release_type == "patch":
          patch += 1
      elif release_type == "minor":
          minor += 1
          patch = 0
      elif release_type == "major":
          major += 1
          minor = patch = 0
      else:
          raise ValueError(
              "Incorrect release type specified. Acceptable types are major, minor and patch."
          )
  
      new_version_tuple = (major, minor, patch)
      new_version_str = ".".join([str(x) for x in new_version_tuple])
      new_tag_str = "v" + new_version_str
      return new_version_tuple, new_version_str, new_tag_str
  
imports: import argparse
  import re
  from typing import Tuple
  from setup import find_version
label_desc: Use image node_id 1 for calling a global function with example usage: get_next_version(release_type) and returns: new_version_tuple,  new_version_str,  new_tag_str