code: def pitch(pitch_str):
      """
      Convert a string representation of a pitch class (consisting of root
      note and modifiers) to an integer representation.
  
      Parameters
      ----------
      pitch_str : str
          String representation of a pitch class.
  
      Returns
      -------
      pitch : int
          Integer representation of a pitch class.
  
      """
      return (
          modify(
              _chroma_id[(ord(pitch_str[0]) - ord("C")) % 7],
              pitch_str[1:],
          )
          % 12
      )
  
imports: import numpy
  from .None import evaluation_io, EvaluationMixin
  from ..io import load_chords
label_desc: Use image node_id 5 for calling a global function with example usage: pitch(pitch_str) and returns: unknown