code: def reboot_pod(chaos_yaml):
      # parse chaos object
      chaos_config = gen_experiment_config(chaos_yaml)
      log.debug(chaos_config)
      # inject chaos
      chaos_res = CusResource(
          kind=chaos_config["kind"],
          group=constants.CHAOS_GROUP,
          version=constants.CHAOS_VERSION,
          namespace=constants.CHAOS_NAMESPACE,
      )
      chaos_res.create(chaos_config)
      log.debug("chaos injected")
      sleep(7)
      # delete chaos
      meta_name = chaos_config.get("metadata", None).get("name", None)
      chaos_res.delete(meta_name)
      log.debug("chaos deleted")
  
file_path: milvus/tests/python_client/chaos/test_chaos_data_consist.py
imports: import pytest
  import datetime
  from time import sleep
  from pymilvus import connections, utility
  from base.collection_wrapper import ApiCollectionWrapper
  from common.cus_resource_opts import CustomResourceOperations
  from common import common_func
  from common import common_type
  from chaos.chaos_commons import gen_experiment_config, get_chaos_yamls, reconnect
  from common.common_type import CaseLabel
  from chaos import constants
  from utils.util_log import test_log
  from utils.util_k8s import wait_pods_ready
  from chaos import chaos_commons
label_desc: Use image node_id 1 for calling a global function with example usage: reboot_pod(chaos_yaml) without return types