code: def perform_patch(cls, operations, obj, state=None):
          
          if state is None:
              state = {}
          for operation in operations:
              if not cls._process_patch_operation(operation, obj=obj, state=state):
                  log.info(
                      "%s patching has been stopped because of unknown operation %s",
                      obj.__class__.__name__,
                      operation
                  )
                  raise ValidationError(
                      "Failed to update %s details. Operation %s could not succeed." % (
                          obj.__class__.__name__,
                          operation
                      )
                  )
          return True
docs: Performs all necessary operations by calling class methods with
          corresponding names.