code: def _get_non_empty_dict(cls, mapping):
          
          res = {}
          for key, value in mapping.items():
              if hasattr(value, 'items'):
                  value = cls._get_non_empty_dict(value)
              elif isinstance(value, list):
                  value = cls._get_non_empty_list(value)
              if value not in [[], {}, None]:
                  res[key] = value
          return res
docs: Return the mapping without any ``None`` values (recursive).