def METHOD_NAME(prefix=None, pyexec=None):
    """Check if prefix or python executable are in a conda environment."""
    if pyexec is not None:
        pyexec = pyexec.replace('\\', '/')
    if (prefix is None and pyexec is None) or (prefix and pyexec):
        raise ValueError('Only `prefix` or `pyexec` should be provided!')
    if pyexec and prefix is None:
        prefix = get_conda_env_path(pyexec).replace('\\', '/')
    return os.path.exists(os.path.join(prefix, 'conda-meta'))