code: def get_matched_value_counts(
      value_counts: pd.Series, other_to_match: pd.Series
  ) -> pd.Series:
      # Returns a "Value count" Series of another series ONLY for the values in
      # the original value_count
  
      matched_series = pd.Series(
          index=other_to_match.index, dtype=float
      )
      for ind in matched_series.index:
          if ind in value_counts:
              matched_series[ind] = value_counts[ind]
          else:
              matched_series[ind] = 0.0
  
      if OTHERS_GROUPED in matched_series.index:
          total = sum(value_counts)
          total_in_other = total - sum(matched_series)
          matched_series[OTHERS_GROUPED] = total_in_other
      # if total_in_other > 0:
      #     other_series = pd.Series([total_in_other], index = [OTHERS_GROUPED])
      #     matched_series = matched_series.append(other_series, ignore_index=False)
  
      return matched_series
  
imports: import pandas
  from sweetviz.sv_types import OTHERS_GROUPED
label_desc: Use image node_id 2 for calling a global function with example usage: get_matched_value_counts(value_counts, other_to_match) and returns: matched_series