prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  expose `average_endpoint_error` on `kornia.metrics.__init__.py`
                can you expose it on kornia.metrics.__init__.py ? - to use as `kornia.metrics.average_endpoint_error` too
  
  _Originally posted by @johnnv1 in https://github.com/kornia/kornia/pull/2615#discussion_r1351007042_
              
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `kornia/metrics/__init__.py`
  Content:
  ```
  1 from .accuracy import accuracy
  2 from .average_meter import AverageMeter
  3 from .confusion_matrix import confusion_matrix
  4 from .endpoint_error import AEPE, aepe
  5 from .mean_average_precision import mean_average_precision
  6 from .mean_iou import mean_iou, mean_iou_bbox
  7 from .psnr import psnr
  8 from .ssim import SSIM, ssim
  9 from .ssim3d import SSIM3D, ssim3d
  10 
  11 __all__ = [
  12     "accuracy",
  13     "AverageMeter",
  14     "confusion_matrix",
  15     "aepe",
  16     "AEPE",
  17     "mean_iou",
  18     "mean_iou_bbox",
  19     "mean_average_precision",
  20     "psnr",
  21     "ssim",
  22     "ssim3d",
  23     "SSIM",
  24     "SSIM3D",
  25 ]
  26
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/kornia/metrics/__init__.py b/kornia/metrics/__init__.py
  --- a/kornia/metrics/__init__.py
  +++ b/kornia/metrics/__init__.py
  @@ -1,7 +1,7 @@
   from .accuracy import accuracy
   from .average_meter import AverageMeter
   from .confusion_matrix import confusion_matrix
  -from .endpoint_error import AEPE, aepe
  +from .endpoint_error import AEPE, aepe, average_endpoint_error
   from .mean_average_precision import mean_average_precision
   from .mean_iou import mean_iou, mean_iou_bbox
   from .psnr import psnr
  @@ -14,6 +14,7 @@
       "confusion_matrix",
       "aepe",
       "AEPE",
  +    "average_endpoint_error",
       "mean_iou",
       "mean_iou_bbox",
       "mean_average_precision",
  
verification_info: {"golden_diff": "diff --git a/kornia/metrics/__init__.py b/kornia/metrics/__init__.py\n--- a/kornia/metrics/__init__.py\n+++ b/kornia/metrics/__init__.py\n@@ -1,7 +1,7 @@\n from .accuracy import accuracy\n from .average_meter import AverageMeter\n from .confusion_matrix import confusion_matrix\n-from .endpoint_error import AEPE, aepe\n+from .endpoint_error import AEPE, aepe, average_endpoint_error\n from .mean_average_precision import mean_average_precision\n from .mean_iou import mean_iou, mean_iou_bbox\n from .psnr import psnr\n@@ -14,6 +14,7 @@\n     \"confusion_matrix\",\n     \"aepe\",\n     \"AEPE\",\n+    \"average_endpoint_error\",\n     \"mean_iou\",\n     \"mean_iou_bbox\",\n     \"mean_average_precision\",\n", "issue": "expose `average_endpoint_error` on `kornia.metrics.__init__.py`\n              can you expose it on kornia.metrics.__init__.py ? - to use as `kornia.metrics.average_endpoint_error` too\r\n\r\n_Originally posted by @johnnv1 in https://github.com/kornia/kornia/pull/2615#discussion_r1351007042_\r\n            \n", "before_files": [{"content": "from .accuracy import accuracy\nfrom .average_meter import AverageMeter\nfrom .confusion_matrix import confusion_matrix\nfrom .endpoint_error import AEPE, aepe\nfrom .mean_average_precision import mean_average_precision\nfrom .mean_iou import mean_iou, mean_iou_bbox\nfrom .psnr import psnr\nfrom .ssim import SSIM, ssim\nfrom .ssim3d import SSIM3D, ssim3d\n\n__all__ = [\n    \"accuracy\",\n    \"AverageMeter\",\n    \"confusion_matrix\",\n    \"aepe\",\n    \"AEPE\",\n    \"mean_iou\",\n    \"mean_iou_bbox\",\n    \"mean_average_precision\",\n    \"psnr\",\n    \"ssim\",\n    \"ssim3d\",\n    \"SSIM\",\n    \"SSIM3D\",\n]\n", "path": "kornia/metrics/__init__.py"}], "after_files": [{"content": "from .accuracy import accuracy\nfrom .average_meter import AverageMeter\nfrom .confusion_matrix import confusion_matrix\nfrom .endpoint_error import AEPE, aepe, average_endpoint_error\nfrom .mean_average_precision import mean_average_precision\nfrom .mean_iou import mean_iou, mean_iou_bbox\nfrom .psnr import psnr\nfrom .ssim import SSIM, ssim\nfrom .ssim3d import SSIM3D, ssim3d\n\n__all__ = [\n    \"accuracy\",\n    \"AverageMeter\",\n    \"confusion_matrix\",\n    \"aepe\",\n    \"AEPE\",\n    \"average_endpoint_error\",\n    \"mean_iou\",\n    \"mean_iou_bbox\",\n    \"mean_average_precision\",\n    \"psnr\",\n    \"ssim\",\n    \"ssim3d\",\n    \"SSIM\",\n    \"SSIM3D\",\n]\n", "path": "kornia/metrics/__init__.py"}]}