def camel_to_snake(name):
    """Convert camelCase to snake_case.

    Args:
        name: the camelCase string

    Returns:
        a snake_case string
    ."""
    s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
    return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()
Convert camelCase to snake_case.

    Args:
        name: the camelCase string

    Returns:
        a snake_case string
    .
fiftyone/core/threed/utils.py