def _range_representer(representer, node: range):
    """Represents a Python range object using the ``!range`` YAML tag.

    Args:
        representer (ruamel.yaml.representer): The representer module
        node (range): The node, i.e. a range instance

    Returns:
        a yaml sequence that is able to recreate a range
    """
    range_args = [node.start, node.stop, node.step]
    return representer.represent_sequence("!range", range_args)