code: def convert_str_to_num_freq(freq_str):
      """Convert frequency tags into numeric delta in ms
  
      Parameters
      ----------
          freq_str str
              frequency tag
  
      Returns
      -------
          numeric
              frequency numeric delta in ms
      """
      if freq_str is None:
          freq_num = 0
      else:
          aux_ts = pd.DataFrame(
              pd.date_range("1994-01-01", periods=100, freq=freq_str)
          )
          frequencies, distribution = get_freq_dist(aux_ts[0])
          freq_num = frequencies[np.argmax(distribution)]
          # if freq_str == "B" or freq_str == "BH":  # exception - Business day and Business hour
          #     freq_num = freq_num + 0.777
      return freq_num
  
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 26 for calling a global function with example usage: convert_str_to_num_freq(freq_str) and returns: freq_num