code: def _get_dominant_frequency_percentage(
      frequencies, distribution, filter_list
  ) -> float:
      """Calculate dominant frequency percentage of dataframe.
  
      Parameters
      ----------
          frequencies : list
              list of numeric delta values (``ms``) of frequencies
          distribution : list
              list of occasions of frequencies
          filter_list : list
              list of frequencies to be filtered
  
      Returns
      -------
          float
              Percentage of dominant frequency within the whole dataframe
  
      """
      dominant_frequencies = [
          freq for freq in frequencies if freq in filter_list
      ]
      dominant_distribution = [
          distribution[np.where(frequencies == freq)]
          for freq in dominant_frequencies
      ]
      return sum(dominant_distribution) / sum(distribution)
  
imports: from __future__ import annotations
  import logging
  import math
  from collections import OrderedDict
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, List, Optional, Tuple
  import numpy
  import pandas
label_desc: Use image node_id 29 for calling a global function with example usage: _get_dominant_frequency_percentage(frequencies, distribution, filter_list) and returns: unknown