@classmethod
def to_yaml(cls, dumper, data):
    """
        Convert a Python object to a representation node.
        """
    return dumper.represent_scalar('tag:yaml.org,2002:int', '{:04o}'.format
        (data._value))
