def METHOD_NAME(self, artifact_name, return_code, content=None, file=None):
    self._create_artifacts_dir()
    artifact = Artifact(os.path.join(self._artifacts_dir, artifact_name), abs(return_code))
    self.artifacts[artifact_name.replace("_", " ").replace(".", " ")] = artifact
    if content:
        with open(artifact.file, 'wb') as f:
            f.write(content)
    if file:
        shutil.move(file, artifact.file)
    return artifact