code: def register_network(build_fn=None, *, name=None):
      """Registers a function that returns a tf.keras.models.Model as an ivis base network.
      A mapping will be created between the name and the network builder function passed.
  
      If no name is provided to this function, the name of the passed function will be used
      as a key.
      """
  
      if build_fn is None:
          return partial(register_network, name=name)
  
      key = name or build_fn.__name__
      base_networks[key] = build_fn
      return build_fn
  
file_path: ivis/ivis/nn/network.py
imports: from functools import partial
  import numpy
  from tensorflow.keras import regularizers
  from tensorflow.keras.models import Model, Sequential
  from tensorflow.keras.layers import Input, Dense, AlphaDropout, Lambda
  from tensorflow.keras import backend
  from tensorflow.keras.regularizers import l2
  from .losses import is_categorical, is_hinge, is_multiclass, validate_sparse_labels
label_desc: Use image node_id 1 for calling a global function with example usage: register_network(build_fn) and returns: build_fn, partial