code: def _correlation_cdist_wrap(XA, XB, dm, **kwargs):
      XA = XA - XA.mean(axis=1, keepdims=True)
      XB = XB - XB.mean(axis=1, keepdims=True)
      _distance_wrap.cdist_cosine_double_wrap(XA, XB, dm, **kwargs)
  
imports: import math
  import warnings
  import numpy
  import dataclasses
  from typing import Optional, Callable
  from functools import partial
  from scipy._lib._util import _asarray_validated
  from .None import _distance_wrap
  from .None import _hausdorff
  from ..linalg import norm
  from ..special import rel_entr
  from .None import _distance_pybind
label_desc: Use image node_id 2 for calling a global function with example usage: _correlation_cdist_wrap(XA, XB, dm) without return types