Creating sub accounts on concordium

I am trying to follow your wallet SDK documentation in order to automate the creation of an identity and an account that can also develop subaccounts based on the main account. I want to do this with node js based on web sdk made available.

I was following this guide, but it doesn’t seem to help:
https://developer.concordium.software/en/mainnet/net/guides/wallet-sdk/wallet-sdk-identity-creation.html

Especially around here where it assigns getIdentityProvider:
import {
ConcordiumGRPCWebClient,
ConcordiumHdWallet,
createIdentityRequestWithKeys,
IdentityRequestWithKeysInput,
IdObjectRequestV1,
Versioned,
} from ‘@concordium/web-sdk’;

const identityProvider: IdentityProviderWithMetadata = getIdentityProviders()[0];