prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Bug: `SessionCookieConfig` import DeprecationWarning - suggested import path does not exist
  **Describe the bug**
  In Starlite >= 1.47, the statement `from starlite.middleware.session.cookie_backend import CookieBackendConfig` raises a DeprecationWarning:
  ```
  DeprecationWarning: Import of deprecated import 'SessionCookieConfig from starlite.middleware.session'.
  Deprecated in starlite 1.47.0. This import will be removed in the next major version.
  Use "'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'" instead
  ```
  The suggested import path does not exist and contains a typo.
  
  
  
  </issue>
  <code>
  [start of starlite/middleware/session/__init__.py]
  1 from typing import Any
  2 
  3 from starlite.utils import warn_deprecation
  4 
  5 from .base import SessionMiddleware
  6 
  7 
  8 def __getattr__(name: str) -> Any:
  9     """Provide lazy importing as per https://peps.python.org/pep-0562/"""
  10 
  11     if name != "SessionCookieConfig":
  12         raise AttributeError(f"Module {__package__} has no attribute {name}")
  13 
  14     from .cookie_backend import CookieBackendConfig
  15 
  16     warn_deprecation(
  17         deprecated_name=f"{name} from {__package__}",
  18         kind="import",
  19         alternative="'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'",
  20         version="1.47.0",
  21     )
  22 
  23     globals()[name] = CookieBackendConfig
  24     return CookieBackendConfig
  25 
  26 
  27 __all__ = ["SessionMiddleware"]
  28
  [end of starlite/middleware/session/__init__.py]
  [start of starlite/template/__init__.py]
  1 from typing import Any
  2 
  3 from .base import TemplateEngineProtocol, TemplateProtocol
  4 
  5 __all__ = ("TemplateEngineProtocol", "TemplateProtocol")
  6 
  7 from ..utils import warn_deprecation
  8 
  9 
  10 def __getattr__(name: str) -> Any:
  11     """Provide lazy importing as per https://peps.python.org/pep-0562/"""
  12 
  13     if name not in {"JinjaTemplateEngine", "MakoTemplateEngine", "MakoTemplate"}:
  14         raise AttributeError(f"Module {__package__} has no attribute {name}")
  15 
  16     if name == "JinjaTemplateEngine":
  17         from starlite.contrib.jinja import JinjaTemplateEngine
  18 
  19         export: Any = JinjaTemplateEngine
  20         module = "jinja"
  21     elif name == "MakoTemplateEngine":
  22         from starlite.contrib.mako import MakoTemplateEngine
  23 
  24         export = MakoTemplateEngine
  25         module = "mako"
  26     else:
  27         from starlite.contrib.mako import MakoTemplate
  28 
  29         export = MakoTemplate
  30         module = "mako"
  31 
  32     warn_deprecation(
  33         deprecated_name=f"{name} from {__package__}",
  34         kind="import",
  35         alternative=f"'from startlite.contrib.{module} import {name}'",
  36         version="1.46.0",
  37     )
  38 
  39     globals()[name] = export
  40     return export
  41
  [end of starlite/template/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/starlite/middleware/session/__init__.py b/starlite/middleware/session/__init__.py
  --- a/starlite/middleware/session/__init__.py
  +++ b/starlite/middleware/session/__init__.py
  @@ -8,7 +8,7 @@
   def __getattr__(name: str) -> Any:
       """Provide lazy importing as per https://peps.python.org/pep-0562/"""
   
  -    if name != "SessionCookieConfig":
  +    if name != "CookieBackendConfig":
           raise AttributeError(f"Module {__package__} has no attribute {name}")
   
       from .cookie_backend import CookieBackendConfig
  @@ -16,7 +16,7 @@
       warn_deprecation(
           deprecated_name=f"{name} from {__package__}",
           kind="import",
  -        alternative="'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'",
  +        alternative="'from starlite.middleware.session.cookie_backend import CookieBackendConfig'",
           version="1.47.0",
       )
   
  diff --git a/starlite/template/__init__.py b/starlite/template/__init__.py
  --- a/starlite/template/__init__.py
  +++ b/starlite/template/__init__.py
  @@ -32,7 +32,7 @@
       warn_deprecation(
           deprecated_name=f"{name} from {__package__}",
           kind="import",
  -        alternative=f"'from startlite.contrib.{module} import {name}'",
  +        alternative=f"'from starlite.contrib.{module} import {name}'",
           version="1.46.0",
       )
  
verification_info: {"golden_diff": "diff --git a/starlite/middleware/session/__init__.py b/starlite/middleware/session/__init__.py\n--- a/starlite/middleware/session/__init__.py\n+++ b/starlite/middleware/session/__init__.py\n@@ -8,7 +8,7 @@\n def __getattr__(name: str) -> Any:\n     \"\"\"Provide lazy importing as per https://peps.python.org/pep-0562/\"\"\"\n \n-    if name != \"SessionCookieConfig\":\n+    if name != \"CookieBackendConfig\":\n         raise AttributeError(f\"Module {__package__} has no attribute {name}\")\n \n     from .cookie_backend import CookieBackendConfig\n@@ -16,7 +16,7 @@\n     warn_deprecation(\n         deprecated_name=f\"{name} from {__package__}\",\n         kind=\"import\",\n-        alternative=\"'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'\",\n+        alternative=\"'from starlite.middleware.session.cookie_backend import CookieBackendConfig'\",\n         version=\"1.47.0\",\n     )\n \ndiff --git a/starlite/template/__init__.py b/starlite/template/__init__.py\n--- a/starlite/template/__init__.py\n+++ b/starlite/template/__init__.py\n@@ -32,7 +32,7 @@\n     warn_deprecation(\n         deprecated_name=f\"{name} from {__package__}\",\n         kind=\"import\",\n-        alternative=f\"'from startlite.contrib.{module} import {name}'\",\n+        alternative=f\"'from starlite.contrib.{module} import {name}'\",\n         version=\"1.46.0\",\n     )\n", "issue": "Bug: `SessionCookieConfig` import DeprecationWarning - suggested import path does not exist\n**Describe the bug**\r\nIn Starlite >= 1.47, the statement `from starlite.middleware.session.cookie_backend import CookieBackendConfig` raises a DeprecationWarning:\r\n```\r\nDeprecationWarning: Import of deprecated import 'SessionCookieConfig from starlite.middleware.session'.\r\nDeprecated in starlite 1.47.0. This import will be removed in the next major version.\r\nUse \"'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'\" instead\r\n```\r\nThe suggested import path does not exist and contains a typo.\r\n\r\n\n", "before_files": [{"content": "from typing import Any\n\nfrom starlite.utils import warn_deprecation\n\nfrom .base import SessionMiddleware\n\n\ndef __getattr__(name: str) -> Any:\n    \"\"\"Provide lazy importing as per https://peps.python.org/pep-0562/\"\"\"\n\n    if name != \"SessionCookieConfig\":\n        raise AttributeError(f\"Module {__package__} has no attribute {name}\")\n\n    from .cookie_backend import CookieBackendConfig\n\n    warn_deprecation(\n        deprecated_name=f\"{name} from {__package__}\",\n        kind=\"import\",\n        alternative=\"'from startlite.middleware.sessions.cookie_backend import CookieBackendConfig'\",\n        version=\"1.47.0\",\n    )\n\n    globals()[name] = CookieBackendConfig\n    return CookieBackendConfig\n\n\n__all__ = [\"SessionMiddleware\"]\n", "path": "starlite/middleware/session/__init__.py"}, {"content": "from typing import Any\n\nfrom .base import TemplateEngineProtocol, TemplateProtocol\n\n__all__ = (\"TemplateEngineProtocol\", \"TemplateProtocol\")\n\nfrom ..utils import warn_deprecation\n\n\ndef __getattr__(name: str) -> Any:\n    \"\"\"Provide lazy importing as per https://peps.python.org/pep-0562/\"\"\"\n\n    if name not in {\"JinjaTemplateEngine\", \"MakoTemplateEngine\", \"MakoTemplate\"}:\n        raise AttributeError(f\"Module {__package__} has no attribute {name}\")\n\n    if name == \"JinjaTemplateEngine\":\n        from starlite.contrib.jinja import JinjaTemplateEngine\n\n        export: Any = JinjaTemplateEngine\n        module = \"jinja\"\n    elif name == \"MakoTemplateEngine\":\n        from starlite.contrib.mako import MakoTemplateEngine\n\n        export = MakoTemplateEngine\n        module = \"mako\"\n    else:\n        from starlite.contrib.mako import MakoTemplate\n\n        export = MakoTemplate\n        module = \"mako\"\n\n    warn_deprecation(\n        deprecated_name=f\"{name} from {__package__}\",\n        kind=\"import\",\n        alternative=f\"'from startlite.contrib.{module} import {name}'\",\n        version=\"1.46.0\",\n    )\n\n    globals()[name] = export\n    return export\n", "path": "starlite/template/__init__.py"}]}