docstr: Cleanup test artifacts from download and unpacking
  :return:
docstr_tok: ["Cleanup","test","artifacts","from","download","and","unpacking",":","return",":"]
code: def teardown_class(cls):
      """
      Cleanup test artifacts from download and unpacking
      :return:
      """
      zip_f = cls.dpath + "MQ2008.zip"
      if os.path.exists(zip_f):
          os.remove(zip_f)
      directory = cls.dpath + "MQ2008"
      if os.path.exists(directory):
          shutil.rmtree(directory)
  
imports: import itertools
  import json
  import os
  import shutil
  from typing import Optional
  import numpy
  import pytest
  from hypothesis import given, note, settings
  from scipy.sparse import csr_matrix
  import xgboost
  from xgboost import testing
  from xgboost.testing.data import RelDataCV, simulate_clicks, sort_ltr_samples
  from xgboost.testing.params import lambdarank_parameter_strategy
label_desc: Use image node_id 2 for calling the TestRanking obj's underlying member method code with example usage: obj.teardown_class(cls) without return types