<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _extract_attribute_dictionary_from_program(program: Program) -> Dict[str, Any]: """ Collects the attributes from PYQUIL_PROGRAM_PROPERTIES on the Program object program into a dictionary. :param program: Program to collect attributes from. :return: Dictionary of attributes, keyed on the string attribute name. """

    attrs = {}
    for prop in PYQUIL_PROGRAM_PROPERTIES:
        attrs[prop] = getattr(program, prop)
    return attrs