code: def test_recursive_rm_dir():
      dir_name = "dir_to_be_removed"
      # Empty dir.
      os.mkdir(dir_name)
      files = os.listdir(".")
      assert dir_name in files
      recursive_rm_dir(dir_name)
      files = os.listdir(".")
      assert dir_name not in files
      # Single file.
      f = open(dir_name, "a")
      f.write("This file is to be removed.")
      f.close()
      files = os.listdir(".")
      assert dir_name in files
      recursive_rm_dir(dir_name)
      files = os.listdir(".")
      assert dir_name not in files
      # Nested dir and files.
      os.mkdir(dir_name)
      f = open(os.path.join(dir_name, f"{dir_name}_file"), "a")
      f.write("This file is to be removed.")
      f.close()
      os.mkdir(os.path.join(dir_name, f"{dir_name}_dir"))
      f = open(
          os.path.join(dir_name, f"{dir_name}_dir", f"{dir_name}_file"),
          "a",
      )
      f.write("This file is to be removed.")
      f.close()
      files = os.listdir(".")
      assert dir_name in files
      recursive_rm_dir(dir_name)
      files = os.listdir(".")
      assert dir_name not in files
  
imports: import inspect
  import os
  import sys
  from collections import OrderedDict
  import pytest
  from greykite.common.python_utils import assert_equal
  from greykite.common.testing_utils import generate_df_for_tests
  from greykite.framework.templates.autogen.forecast_config import ComputationParam
  from greykite.framework.templates.autogen.forecast_config import EvaluationPeriodParam
  from greykite.framework.templates.autogen.forecast_config import ForecastConfig
  from greykite.framework.templates.autogen.forecast_config import MetadataParam
  from greykite.framework.templates.autogen.forecast_config import ModelComponentsParam
  from greykite.framework.templates.forecaster import Forecaster
  from greykite.framework.templates.model_templates import ModelTemplateEnum
  from greykite.framework.templates.pickle_utils import dump_obj
  from greykite.framework.templates.pickle_utils import load_obj
  from greykite.framework.templates.pickle_utils import recursive_rm_dir
  from greykite.framework.utils.result_summary import summarize_grid_search_results
label_desc: Use image node_id 3 for calling a global function with example usage: test_recursive_rm_dir() without return types