code: def get_tuple(nuplet, index, default=None):
      
      if nuplet is None:
          return default
      try:
          return nuplet[index]
      except IndexError:
          return default
docs: :param tuple nuplet: A tuple
          :param int index: An index
          :param default: An optional default value
          :return: ``nuplet[index]`` if defined, else ``default`` (possibly ``None``)