<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def os_packages(metadata):
 """ Installs operating system dependent packages """

    family = metadata[0]
    release = metadata[1]
    #
    if 'Amazon' in family and '2' not in release:
        stdout_message('Identified Amazon Linux 1 os distro')
        commands = [
            'sudo yum -y update', 'sudo yum -y groupinstall "Development tools"'
        ]
        for cmd in commands:
            stdout_message(subprocess.getoutput(cmd))
        return True
    elif 'Amazon' in family and '2' in release:
        stdout_message('Identified Amazon Linux 2 os distro')
        commands = [
            'sudo yum -y update', 'sudo yum -y groupinstall "Development tools"'
        ]
        for cmd in commands:
            stdout_message(subprocess.getoutput(cmd))
        return True
    elif 'Redhat' in family:
        stdout_message('Identified Redhat Enterprise Linux os distro')
        commands = [
            'sudo yum -y update', 'sudo yum -y groupinstall "Development tools"'
        ]
        for cmd in commands:
            stdout_message(subprocess.getoutput(cmd))
    elif 'Ubuntu' or 'Mint' in family:
        stdout_message('Identified Ubuntu Linux os distro')
        commands = [
            'sudo apt -y update', 'sudo apt -y upgrade',
            'sudo yum -y groupinstall "Development tools"'
        ]
        for cmd in commands:
            stdout_message(subprocess.getoutput(cmd))
        return True
    return False