docs: def get_element_type(_list, dimens):
      """
      Given the dimensions of a nested list and the list, returns the type of the
      elements in the inner list.
      """
      elem = _list
      for _ in range(len(dimens)):
          elem = elem[0]
      return type(elem)