code: def test_remove_empty_splits():
      splits = {"non_empty_split": range(5), "empty_split": range(0)}
      with mock.patch.object(logging, "log"):
          non_empty_splits = (
              huggingface_dataset_builder._remove_empty_splits(splits)
          )
          logging.log.assert_called_once_with(
              logging.WARNING,
              huggingface_dataset_builder._EMPTY_SPLIT_WARNING_MSG,
              "empty_split",
          )
      assert non_empty_splits.keys() == {"non_empty_split"}
      assert list(non_empty_splits["non_empty_split"]) == list(range(5))
  
imports: import datetime
  from unittest import mock
  from absl import logging
  import numpy
  import pytest
  import tensorflow
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import lazy_imports_lib
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core.dataset_builders import huggingface_dataset_builder
label_desc: Use image node_id 12 for calling a global function with example usage: test_remove_empty_splits() without return types