code: def count_data(data_dict):
      """count audio length and number of speakers"""
  
      lens = {
          "train": 0.0,
          "valid": 0.0,
          "devman": 0.0,
          "devsge": 0.0,
          "other": 0.0,
      }
      spkr_dict = {
          "train": set(),
          "valid": set(),
          "devman": set(),
          "devsge": set(),
          "other": set(),
      }
      for key, val in data_dict.items():
          lens[val["split"]] += (
              float(val["end_ms"]) - float(val["start_ms"])
          ) / 1000.0
          spkr_dict[val["split"]].add(val["speaker"])
  
      for key in lens.keys():
          print(
              "=> {} set : {:.2f} hours / {} speakers".format(
                  key, lens[key] / 3600.0, len(spkr_dict[key])
              )
          )
  
imports: import argparse
  import collections
  import itertools
  import os
  import random
  import re
  import sys
label_desc: Use image node_id 18 for calling a global function with example usage: count_data(data_dict) without return types