code: def _extract_attribute_dictionary_from_program(program: Program) -> Dict[str, Any]:
      
      attrs = {}
      for prop in PYQUIL_PROGRAM_PROPERTIES:
          attrs[prop] = getattr(program, prop)
      return attrs
docs: 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.