<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_calmjs_artifact_declarations(cmd, registry_name='calmjs.artifacts'):
 """ For a distutils command to verify that the artifact build step is possible. """


    return any(get(registry_name).iter_records_for(
        cmd.distribution.get_name()))