Converts camel case API naming conventions to snake case.
camelCase (str) – A string written in camel case, e.g. ‘profileId’.
The string converted to snake case, e.g. ‘profile_id’.
str