def METHOD_NAME():
    module = AnsibleModule(
        argument_spec={
            'name': {'required': True, 'type': 'str'},
            'version': {'default': None, 'required': False, 'type': 'str'},
            'state': {
                'default': 'present',
                'required': False,
                'choices': ['present', 'absent', 'latest']
            },
            'channels': {'default': None, 'required': False},
            'executable': {'default': None, 'required': False},
            'extra_args': {'default': None, 'required': False, 'type': 'str'}
        },
        supports_check_mode=True)
    conda = _find_conda(module, module.params['executable'])
    name = module.params['name']
    state = module.params['state']
    version = module.params['version']
    installed, installed_version = _check_installed(module, conda, name)
    if state == 'absent':
        _remove_package(module, conda, installed, name)
    elif state == 'present' or (state == 'latest' and not installed):
        _install_package(
            module, conda, installed, name, version, installed_version)
    elif state == 'latest':
        _update_package(module, conda, installed, name)