code: def test_loop_last():
      assert list(loop_last([])) == []
      iterable = loop_last(["apples", "oranges", "pears", "lemons"])
      assert next(iterable) == (False, "apples")
      assert next(iterable) == (False, "oranges")
      assert next(iterable) == (False, "pears")
      assert next(iterable) == (True, "lemons")
  
imports: from rich._loop import loop_first, loop_last, loop_first_last
  from rich._ratio import ratio_distribute
label_desc: Use image node_id 2 for calling a global function with example usage: test_loop_last() without return types