code: def _clean_dict(mydict):
      for key, value in mydict.items():
          if value is not None:
              if isinstance(value, dict):
                  value = _expand(_clean_dict(value))
  
              elif isinstance(value, (list, tuple, set)):
                  value = list(_clean_array(value))
  
              elif isinstance(value, str) and not value:
                  # delete key with empty string
                  continue
  
              yield key, value
  
file_path: pyecharts/pyecharts/commons/utils.py
imports: import re
  from ..datasets import EXTRA, FILENAMES
label_desc: Use image node_id 5 for calling a global function with example usage: _clean_dict(mydict) without return types