code: def test_impute_missing():
      """Debugging data preprocessing"""
      log.info("testing: Impute Missing")
      allow_missing_dates = False
      df = pd.read_csv(PEYTON_FILE, nrows=NROWS)
      name = "test"
      df[name] = df["y"].values
      if not allow_missing_dates:
          df_na, _ = df_utils.add_missing_dates_nan(
              df.copy(deep=True), freq="D"
          )
      else:
          df_na = df.copy(deep=True)
      to_fill = pd.isna(df_na["y"])
      # TODO fix debugging printout error
      log.debug(f"sum(to_fill): {sum(to_fill.values)}")
      # df_filled, remaining_na = df_utils.fill_small_linear_large_trend(
      #     df.copy(deep=True),
      #     column=name,
      #     allow_missing_dates=allow_missing_dates
      # )
      df_filled = df.copy(deep=True)
      (
          df_filled.loc[:, name],
          remaining_na,
      ) = df_utils.fill_linear_then_rolling_avg(
          df_filled[name], limit_linear=5, rolling=20
      )
      # TODO fix debugging printout error
      log.debug(
          "sum(pd.isna(df_filled[name])): {}".format(
              sum(pd.isna(df_filled[name]).values)
          )
      )
      if PLOT:
          if not allow_missing_dates:
              df, _ = df_utils.add_missing_dates_nan(df, freq="D")
          df = df.loc[200:250]
          plt.plot(df["ds"], df[name], "b-")
          plt.plot(df["ds"], df[name], "b.")
          df_filled = df_filled.loc[200:250]
          # fig3 = plt.plot(df_filled['ds'], df_filled[name], 'kx')
          plt.plot(
              df_filled["ds"][to_fill], df_filled[name][to_fill], "kx"
          )
          plt.show()
  
imports: import logging
  import os
  import pathlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from torch.utils.data import DataLoader
  from neuralprophet import NeuralProphet, configure, df_utils, time_dataset
  from neuralprophet.data.process import _create_dataset, _handle_missing_data
  from neuralprophet.data.transform import _normalize
label_desc: Use image node_id 1 for calling a global function with example usage: test_impute_missing() without return types