def add_project_sample_constants(sample, project):
sample.update(project.constants)<EOL>return sample<EOL>
Update a Sample with constants declared by a Project.

:param Sample sample: sample instance for which to update constants
    based on Project
:param Project project: Project with which to update Sample; it
    may or may not declare constants. If not, no update occurs.
:return Sample: Updates Sample instance, according to any and all
    constants declared by the Project.