code: def CopyAttributesFromSessionCompletion(self, session_completion):
      
      if self.identifier != session_completion.identifier:
        raise ValueError('Session identifier mismatch.')
  
      self.aborted = session_completion.aborted
  
      if session_completion.analysis_reports_counter:
        self.analysis_reports_counter = (
            session_completion.analysis_reports_counter)
  
      self.completion_time = session_completion.timestamp
  
      if session_completion.event_labels_counter:
        self.event_labels_counter = session_completion.event_labels_counter
  
      if session_completion.parsers_counter:
        self.parsers_counter = session_completion.parsers_counter
docs: Copies attributes from a session completion.
  
      Args:
        session_completion (SessionCompletion): session completion attribute
            container.
  
      Raises:
        ValueError: if the identifier of the session completion does not match
            that of the session.