code: def __note_to_degree(
      key: Union[str, _IterableLike[str], Iterable[str]]
  ) -> Union[int, np.ndarray]:
      ...
  
imports: import re
  import numpy
  from numba import jit
  from collections import Counter
  from .intervals import INTERVALS
  from .._cache import cache
  from ..util.exceptions import ParameterError
  from typing import Dict, List, Iterable, Union, overload
  from ..util.decorators import vectorize
  from .._typing import _ScalarOrSequence, _FloatLike_co, _SequenceLike, _IterableLike
label_desc: Use image node_id 8 for calling a global function with example usage: __note_to_degree(key) without return types