You have given all you arguments as positional arguments to the function
dashboard.switch.createNetworkSwitchAccessPolicy
but the function expects only some of the arguments as positional, the rest should be keyword arguments, like in the below function call
response = dashboard.switch.createNetworkSwitchAccessPolicy(
network_id, name, radius_servers, radius_testing_enabled, radius_coa_support_enabled, radius_accounting_enabled, host_mode, url_redirect_walled_garden_enabled,
radius={'criticalAuth': {'dataVlanId': 100, 'voiceVlanId': 100, 'suspendPortBounce': True}, 'failedAuthVlanId': 100, 'reAuthenticationInterval': 120, 'cache': {'enabled': False, 'timeout': 24}},
guestPortBouncing=False,
radiusAccountingServers=[{'organizationRadiusServerId': '42', 'host': '1.2.3.4', 'port': 22, 'secret': 'secret'}],
radiusGroupAttribute='11',
accessPolicyType='Hybrid authentication',
increaseAccessSpeed=False,
guestVlanId=100,
dot1x={'controlDirection': 'inbound'},
voiceVlanClients=True,
urlRedirectWalledGardenRanges=['192.168.1.0/24']
)
you can read more about arguments to functions in below article
https://profound.academy/python-mid/positional-and-keyword-arguments-5LvKxDSUICCBH7Z96b1n