human
Complete this python program:
def get_backend(backend, socket=DEFAULT_SOCKET_URL):
assistant
#Here is the Python code you requested.

    """Receive information about a specific backend.
    backend
    haproxy backend
    socket
    haproxy stats socket, default ``/var/run/haproxy.sock``
    CLI Example:
    .. code-block:: bash
    salt \*\ haproxy.get_backend mysql
    """
    backend_data = list_servers(backend=backend, socket=socket).replace('\n', '    ').split('    ')
    result = {}
    def num(s):
        try:
            return int(s)
        except ValueError:
            return s
    for data in backend_data:
        if (':' in data):
            active_field = data.replace(':', '').lower()
            continue
        elif (active_field.lower() == FIELD_NODE_NAME):
            active_server = data
            result[active_server] = {}
            continue
        if (active_field in FIELD_NUMERIC):
            if (data == ''):
                result[active_server][active_field] = 0
            else:
                result[active_server][active_field] = num(data)
        else:
            result[active_server][active_field] = data
    return result