code: def freq_to_pandas(freq, multiplier=1):
      mapping = {
          "constant": "N",
          "nanosecond": "N",
          "microsecond": "us",
          "millisecond": "ms",
          "second": "S",
          "minute": "T",
          "hourly": "H",  # custom logic
          "daily": "D",  # custom logic
          "weekly": "W",  # anchor logic
          "monthly": "M",  # custom logic
          "bimonthly": "M",
          "quarterly": "Q",  # anchor and custom logic
          "yearly": "Y",  # anchor and custom logic
      }
  
      # TODO: implement custom dispatch for better precision, use row sample if available:
      #  pandas.pydata.org/docs/user_guide/timeseries.html
      items = [mapping[freq]]
      if multiplier > 1:
          items.insert(0, str(multiplier))
      return "".join(items)
  
file_path: lightwood/lightwood/helpers/ts.py
imports: from typing import Tuple, Dict
  from datetime import datetime
  import numpy
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: freq_to_pandas(freq, multiplier) and returns: str