code: def clean_duplicates(dupes: Dict[Text, Any]) -> Dict[Text, Any]:
      """Removes keys for empty values."""
      duplicates = dupes.copy()
      for k in dupes:
          if not dupes[k]:
              duplicates.pop(k)
  
      return duplicates
  
imports: import asyncio
  import functools
  import importlib
  import inspect
  import logging
  from typing import Text, Dict, Optional, Any, List, Callable, Collection, Type
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 12 for calling a global function with example usage: clean_duplicates(dupes) and returns: duplicates