code: def _extract_program_from_pyquil_executable_response(response: PyQuilExecutableResponse) -> Program:
      
      p = Program(response.program)
      for attr, val in response.attributes.items():
          setattr(p, attr, val)
      return p
docs: Unpacks a rpcq PyQuilExecutableResponse object into a pyQuil Program object.
  
      :param response: PyQuilExecutableResponse object to be unpacked.
      :return: Resulting pyQuil Program object.