code: def set_cookies(
      response: starlette.responses.Response, cookies: list[Cookie]
  ):
      for cookie in cookies:
          response.set_cookie(
              cookie.key,
              cookie.value,
              max_age=cookie.max_age,  # type: ignore (bad starlette types)
              expires=cookie.expires,  # type: ignore (bad starlette types)
              path=cookie.path,
              domain=cookie.domain,  # type: ignore (bad starlette types)
              secure=cookie.secure,
              httponly=cookie.httponly,
              samesite=cookie.samesite,
          )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import attr
label_desc: Use image node_id 1 for calling a global function with example usage: set_cookies(response, cookies) without return types