from typing import Tuple


def get_main_version_part(version: Tuple[int, int, int, str, int]) -> str:
    """Retrieves the main part of version information - the main verison
    consists of only the major, minor and patch components.

    Parameters
    ----------
    version
        Version information.

    Returns
    -------
    str
        The main version part.
    """
    parts = 2 if version[2] == 0 else 3
    return '.'.join(str(x) for x in version[:parts])