from typing import Tuple


def extract_package_name_and_version(line: str) -> Tuple[str, str]:
    """Returns the name and the version of the package. If the version is not
    provided, it is set to Not provided.
    
    Parameters
    ----------

    package_line: str
        Line extracted from the conda environment file of the form package=version or package==version
            
    Returns
    -------

    Tuple[str, str] 
        Name and version of the package"""

    split_line = line.split("=")
    name = split_line[0]
    # It is mandatory to use the last element of the list
    # for the version as pip packages are written name==version
    version = split_line[-1] if len(split_line) > 1 else "Not provided"

    return (name, version)