code: def configure_CosineDistance(
      *, normalize: bool = True, ignore_zeros: bool = False
  ) -> CosineDistance:
      return CosineDistance(
          normalize=normalize, ignore_zeros=ignore_zeros
      )
  
imports: from abc import abstractmethod
  from typing import Any, Dict, Generic, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  from .config import registry
  from .types import Floats2d, Ints1d
  from .util import get_array_module, to_categorical
label_desc: Use image node_id 8 for calling a global function with example usage: configure_CosineDistance() and returns: CosineDistance