def _machine_fqdn(machine):
    """Returns the FQDN of the given learning machine.
    """
    from acorn.logging.decoration import _fqdn
    if hasattr(machine, '__class__'):
        return _fqdn(machine.__class__, False)
    else:
        return _fqdn(machine)
