code: def create_processing_context(feedback):
      
      context = QgsProcessingContext()
      context.setFeedback(feedback)
      context.setProject(QgsProject.instance())
  
      # skip Processing geometry checks - Inasafe has its own geometry validation
      # routines which have already been used
      context.setInvalidGeometryCheck(QgsFeatureRequest.GeometryNoCheck)
      return context
docs: Creates a default processing context
  
      :param feedback: Linked processing feedback object
      :type feedback: QgsProcessingFeedback
  
      :return: Processing context
      :rtype: QgsProcessingContext