I am deplaying IPAM with over 10k subnets, I need help with creating an import file, I have groups and sub-groups that I need to create as well, please advise

I am deplaying IPAM with over 10k subnets, I need help with creating an import file, I have groups and sub-groups that I need to create as well, please advise