def METHOD_NAME(self, resource_group):
    self.kwargs.update({
        'purview': self.create_random_name('pv-', 10)
    })
    purview_account = self.cmd('purview account create -n {purview} -g {rg}',checks=[
        self.check('friendlyName', '{purview}'),
        self.check("contains(id, 'resourceGroups/{rg}/providers/Microsoft.Purview/accounts/{purview}')", True),
        self.check('name', '{purview}'),
        self.check('tags', None),
        self.check('location', 'eastus2'),
        self.check('resourceGroup', '{rg}'),
        self.check('provisioningState', 'Creating')
    ]).get_output_in_json()
    self.cmd('purview account wait --created -g {rg} -n {purview}')
    self.cmd('purview account update -n {purview} -g {rg} --tags tag=test', checks=[
        self.check('friendlyName', '{purview}'),
        self.check("contains(id, 'resourceGroups/{rg}/providers/Microsoft.Purview/accounts/{purview}')", True),
        self.check('name', '{purview}'),
        self.check('tags', {'tag':'test'})
    ])
    self.kwargs.update({
        'purview_id': purview_account['createdByObjectId']
    })
    self.cmd('purview account add-root-collection-admin -n {purview} -g {rg} --object-id {purview_id}')
    self.cmd('purview account list-key -n {purview} -g {rg}', checks=[
        self.check("length(@)", 2),
    ])
    self.cmd('purview account show -n {purview} -g {rg}', checks=[
        self.check('createdByObjectId', purview_account['createdByObjectId']),
        self.check('friendlyName', '{purview}'),
        self.check("contains(id, 'resourceGroups/{rg}/providers/Microsoft.Purview/accounts/{purview}')", True),
        self.check('name', '{purview}')
    ])
    self.cmd('purview account list', checks=[
        self.check('type(@)', 'array')
    ])
    self.cmd('purview account delete -g {rg} -n {purview} --y')