code: def test_impute_zero(self):
      df = pd.DataFrame([{"value": np.NaN}])
      dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0])
  
      df = pd.DataFrame([{"value": np.PINF}])
      dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0])
  
      df = pd.DataFrame([{"value": np.NINF}])
      dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0])
  
      df = pd.DataFrame(
          [
              {"value": np.NINF},
              {"value": np.NaN},
              {"value": np.PINF},
              {"value": 1},
          ]
      )
      dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0, 0, 0, 1])
  
      df = pd.DataFrame(
          [
              {"value": np.NINF},
              {"value": np.NaN},
              {"value": np.PINF},
              {"value": 1},
          ]
      )
      df = df.astype(np.float64)
      df = dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0, 0, 0, 1])
  
      df = pd.DataFrame(
          [
              {"value": np.NINF},
              {"value": np.NaN},
              {"value": np.PINF},
              {"value": 1},
          ]
      )
      df = df.astype(np.float32)
      df = dataframe_functions.impute_dataframe_zero(df)
      self.assertEqual(list(df.value), [0, 0, 0, 1])
  
      df = pd.DataFrame([])
      dataframe_functions.impute_dataframe_zero(df)
  
      self.assertEqual(len(df), 0)
  
imports: import warnings
  from unittest import TestCase
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal, assert_series_equal
  from tests.fixtures import warning_free
  from tsfresh import extract_relevant_features
  from tsfresh.feature_extraction.settings import MinimalFCParameters
  from tsfresh.utilities import dataframe_functions
label_desc: Use image node_id 1 for calling the ImputeTestCase obj's underlying member method code with example usage: obj.test_impute_zero() without return types