def transform(hostsvars):
    """Transform an Ansible hostsvars object prior to JSON serialization.

    This transform is the identify function and is provided as an example.

    Args:
        hostsvars: A dictionary mapping hosts (usually IP addresses) to
            dictionaries of variables for each host.

    Returns:
        A modified hostsvars dictionary.
    """
    return hostsvars
