docs: def ensure_frequencies(self, frequencies):
          """Ensure frequencies is dict of host-frequencies."""
          if not frequencies:
              return {}
          if not isinstance(frequencies, dict):
              raise ValueError("frequencies should be dict")
          frequencies = {
              host: Frequency.ensure_frequency(frequencies[host]) for host in frequencies
          }
          return frequencies