code: def uniform_get(sequence, index, default=None):
      
  
      if isinstance(sequence, abc.Mapping):
          return sequence.get(index, default)
      else:
          return sequence[index] if index < len(sequence) else default
docs: Uniform `dict`/`list` item getter, where `index` is interpreted as a key
      for maps and as numeric index for lists.