code: def __init__(
      self, *, normalize: bool = True, ignore_zeros: bool = False
  ):
      self.normalize = normalize
      self.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 1 to create a new CosineDistance object from inherited base classes: Loss with example: obj = CosineDistance()