parameters: (var)
docstring: Adds a variable to the `GraphKeys.MODEL_VARIABLES` collection.
  
    Args:
      var: a variable.
docstring_summary: Adds a variable to the `GraphKeys.MODEL_VARIABLES` collection.
docstring_tokens: Adds a variable to the GraphKeys . MODEL_VARIABLES collection .
function: def add_model_variable(var):
    """Adds a variable to the `GraphKeys.MODEL_VARIABLES` collection.
  
    Args:
      var: a variable.
    """
    if var not in ops.get_collection(ops.GraphKeys.MODEL_VARIABLES):
      ops.add_to_collection(ops.GraphKeys.MODEL_VARIABLES, var)
function_tokens: def add_model_variable ( var ) : if var not in ops . get_collection ( ops . GraphKeys . MODEL_VARIABLES ) : ops . add_to_collection ( ops . GraphKeys . MODEL_VARIABLES , var )