docs: def _get_common_params(self, user_id, attributes):
      """ Get params which are used same in both conversion and impression events.
  
      Args:
        user_id: ID for user.
        attributes: Dict representing user attributes and values which need to be recorded.
  
      Returns:
       Dict consisting of parameters common to both impression and conversion events.
      """
      commonParams = {}
  
      commonParams[self.EventParams.PROJECT_ID] = self._get_project_id()
      commonParams[self.EventParams.ACCOUNT_ID] = self._get_account_id()
  
      visitor = {}
      visitor[self.EventParams.END_USER_ID] = user_id
      visitor[self.EventParams.SNAPSHOTS] = []
  
      commonParams[self.EventParams.USERS] = []
      commonParams[self.EventParams.USERS].append(visitor)
      commonParams[self.EventParams.USERS][0][self.EventParams.ATTRIBUTES] = self._get_attributes(attributes)
  
      commonParams[self.EventParams.SOURCE_SDK_TYPE] = 'python-sdk'
      commonParams[self.EventParams.ENRICH_DECISIONS] = True
      commonParams[self.EventParams.SOURCE_SDK_VERSION] = version.__version__
      commonParams[self.EventParams.ANONYMIZE_IP] = self._get_anonymize_ip()
      commonParams[self.EventParams.REVISION] = self._get_revision()
  
      return commonParams