docs: def _splpy_convert_tuple(attributes):
      """Create a function that converts tuples to
      be submitted as dict objects into Python tuples
      with the value by position.
      Return function handles tuple,dict,list[tuple|dict|None],None
      """
  
      def _to_tuples(tuple_):
          if isinstance(tuple_, tuple):
              return tuple_
          if isinstance(tuple_, dict):
              return tuple(tuple_.get(name, None) for name in attributes)
          if isinstance(tuple_, list):
              lt = list()
              for ev in tuple_:
                  if isinstance(ev, dict):
                      ev = tuple(ev.get(name, None) for name in attributes)
                  lt.append(ev)
              return lt
          return tuple_
      return _to_tuples