code: def get_dist_considering_two_freqs(dist):
      """Add occasions of the two most common frequencies
  
      Note
      ----
      Useful for the frequency exceptions (i.e. ``M``, ``Y``, ``Q``, ``B``, and ``BH``).
  
      Parameters
      ----------
          dist : list
              list of occasions of frequencies
  
      Returns
      -------
          numeric
              sum of the two most common frequencies occasions
      """
      # get distribution considering the two most common frequencies - useful for monthly and business day
      f1 = dist.max()
      dist = np.delete(dist, np.argmax(dist))
      f2 = dist.max()
      return f1 + f2
  
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 28 for calling a global function with example usage: get_dist_considering_two_freqs(dist) and returns: unknown