<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def include(gset, elem, value=True):
 """Do whatever it takes to make ``elem in gset`` true. ['Lucy'] set(['Sky']) {'Diamonds': True} Works for sets (using ``add``), lists (using ``append``) and dicts (using ``__setitem__``). ``value`` if ``gset`` is a dict, does ``gset[elem] = value``. Returns ``elem``, or raises an Error if none of these operations are supported. """

    add = getattr(gset, 'add', None) # sets
    if add is None: add = getattr(gset, 'append', None)  # lists
    if add is not None: add(elem)
    else: # dicts
        if not hasattr(gset, '__setitem__'):
            raise Error("gset is not a supported container.")
        gset[elem] = value
    return elem