code: def flatten_iter(iterable):
      
      for element in iterable:
          if isinstance(element, Iterable):
              yield from flatten_iter(element)    
          else:
              yield element
docs: Takes as input multi dimensional iterable and
      returns generator which produces one dimensional output.