parameters: (name)
docstring: Gets the model module of given name.
  
    Args:
      name: Model name (same as the module that defines it).
  
    Returns:
      A model module.
  
    Raises:
      ValueError: If the model name doesn't exist.
docstring_summary: Gets the model module of given name.
docstring_tokens: Gets the model module of given name .
function: def model_module(name):
    """Gets the model module of given name.
  
    Args:
      name: Model name (same as the module that defines it).
  
    Returns:
      A model module.
  
    Raises:
      ValueError: If the model name doesn't exist.
    """
    if name in ALL_MODELS:
      return ALL_MODELS[name]
    elif name in PREMISE_MODELS:
      return PREMISE_MODELS[name]
    else:
      raise ValueError("Unknown model '%s'" % name)
function_tokens: def model_module ( name ) : if name in ALL_MODELS : return ALL_MODELS [ name ] elif name in PREMISE_MODELS : return PREMISE_MODELS [ name ] else : raise ValueError ( "Unknown model '%s'" % name )