def export_network(name: str, batch_size: int, *args, **kwargs) -> str:
    """ Exports a network by name and returns the path to the output file.
        @param name Network name (options: simple_cnn, deep_mnist, resnet, wide_resnet). 
        @param batch_size Minibatch size to use
        @param args Other arguments to pass to the constructor
        @param kwargs Other keyword arguments to pass to the constructor (e.g., `file_path`)
        @return Path to exported network filename
    """
    name = name.strip().lower()
    g = globals()
    options = [n[7:] for n in g if n.startswith('export_') and n != 'export_network']
    if name not in options:
        raise ValueError('Network "%s" not found, options: %s' % (name,
            ', '.join(options)))
    
    return g['export_' + name](batch_size, *args, **kwargs)