(self, build_profile_id=None)
Returns:
            Returns restore xml as a string for the practice user of app or
                app profile specfied by build_profile_id
            Raises a PracticeUserException if the user is not practice user
Returns:
            Returns restore xml as a string for the practice user of app or
                app profile specfied by build_profile_id
            Raises a PracticeUserException if the user is not practice user
Returns : Returns restore xml as a string for the practice user of app or app profile specfied by build_profile_id Raises a PracticeUserException if the user is not practice user
def create_practice_user_restore(self, build_profile_id=None):
        """
        Returns:
            Returns restore xml as a string for the practice user of app or
                app profile specfied by build_profile_id
            Raises a PracticeUserException if the user is not practice user
        """
        from corehq.apps.ota.models import DemoUserRestore
        if not self.enable_practice_users:
            return None
        user = self.get_practice_user(build_profile_id)
        if user:
            user_restore = DemoUserRestore.objects.get(id=user.demo_restore_id)
            return user_restore.get_restore_as_string()
        else:
            return None
def create_practice_user_restore ( self , build_profile_id = None ) : from corehq . apps . ota . models import DemoUserRestore if not self . enable_practice_users : return None user = self . get_practice_user ( build_profile_id ) if user : user_restore = DemoUserRestore . objects . get ( id = user . demo_restore_id ) return user_restore . get_restore_as_string ( ) else : return None