code: def flatten_once(iterable, check=is_iterable):
      
      for value in iterable:
          if check(value):
              for item in value:
                  yield item
          else:
              yield value
docs: Flattens only the first level.