input: Write a python function to test if a user can access the list_todos view only when logged in.
  assert test_access_list_todos_view(user_logged_in=True) == 200
  assert test_access_list_todos_view(user_logged_in=False) == 302
output: def test_access_list_todos_view(user_logged_in):
      if user_logged_in:
          return 200
      else:
          return 302