human
What is a the Python code you requested given the following:
Complete the below
def get_network_fn(name, num_classes, weight_decay=0.0, is_training=False):

    ''''Returns a network_fn such as `logits, end_points = network_fn(images)`.
    Args:
    name: The name of the network.
    num_classes: The number of classes to use for classification.
    weight_decay: The l2 coefficient for the model weights.
    is_training: `True` if the model is being used for training and `False`
    otherwise.
    Returns:
    network_fn: A function that applies the model to a batch of images. It has
    the following signature:
    logits, end_points = network_fn(images)
    Raises:
    ValueError: If network `name` is not recognized.'
    '''
assistant
#Here is the Python code you requested.
    if (name not in networks_map):
        raise ValueError(('Name    of    network    unknown    %s' % name))
    arg_scope = arg_scopes_map[name](weight_decay=weight_decay)
    func = networks_map[name]
    @functools.wraps(func)
    def network_fn(images):
        with slim.arg_scope(arg_scope):
            return func(images, num_classes, is_training=is_training)
    if hasattr(func, 'default_image_size'):
        network_fn.default_image_size = func.default_image_size
    return network_fn