Is there a way to move a group to become a subgroup of a different group in the gitlab python api?

If I have a group a with id 1 and group b with id 2. Does there exist something like

group = client.groups.get(1)

group.move_to_group(2) #this is the suggestion

and then group a is now a subgroup of group b?

Edited by 🤖 GitLab Bot 🤖