def METHOD_NAME(artifact_dir):
    if os.path.exists(f"{artifact_dir}/{DILL_FILENAME}"):
        if not has_dill:
            raise WandbArtifactsIOManagerError(
                "An object pickled with 'dill' was found in the Artifact. But the module"
                " was not found. Please, make sure it's installed."
            )
        with open(f"{artifact_dir}/{DILL_FILENAME}", "rb") as file:
            input_value = dill.load(file)
            return input_value
    elif os.path.exists(f"{artifact_dir}/{CLOUDPICKLE_FILENAME}"):
        if not has_cloudpickle:
            raise WandbArtifactsIOManagerError(
                "An object pickled with 'cloudpickle' was found in the Artifact. But the"
                " module was not found. Please, make sure it's installed."
            )
        with open(f"{artifact_dir}/{CLOUDPICKLE_FILENAME}", "rb") as file:
            input_value = cloudpickle.load(file)
            return input_value
    elif os.path.exists(f"{artifact_dir}/{JOBLIB_FILENAME}"):
        if not has_joblib:
            raise WandbArtifactsIOManagerError(
                "An object pickled with 'joblib' was found in the Artifact. But the module"
                " was not found. Please, make sure it's installed."
            )
        with open(f"{artifact_dir}/{JOBLIB_FILENAME}", "rb") as file:
            input_value = joblib.load(file)
            return input_value
    elif os.path.exists(f"{artifact_dir}/{PICKLE_FILENAME}"):
        with open(f"{artifact_dir}/{PICKLE_FILENAME}", "rb") as file:
            input_value = pickle.load(file)
            return input_value