#NEWLINE# def create_user_case( self , case_type , commcare_user , fields ) : #NEWLINE# #INDENT# fields [ 'hq_user_id' ] = commcare_user . _id #NEWLINE# caseblock = CaseBlock ( create = True , case_id = uuid . uuid4 ( ) . hex , owner_id = fields . owner_id , user_id = self . owner_id , case_type = case_type , case_name = fields . pop ( 'name' , None ) , update = fields ) #NEWLINE# self . _submit_case_block ( caseblock )