code: def validate(self, data):
      password = data.get("password")
      confirm_password = data.pop("confirm_password")
  
      if password != confirm_password:
          raise serializers.ValidationError("Passwords don't match")
  
      return data
  
imports: from rest_framework import serializers
  from modelchimp.models.user import User
  from modelchimp.models.profile import Profile
  from django.db import transaction
label_desc: Use image node_id 2 for calling the UserSerializer obj's underlying member method code with example usage: obj.validate(data) and returns: data