code: def pytest_configure(config):
      """
      Initial configuration of conftest.
      The function checks if test_data.tar.gz is present in tests/.data.
      If so, compares its size with github's test_data.tar.gz.
      If file absent or sizes not equal, function downloads the archive from github and unpacks it.
      """
      config.addinivalue_line(
          "markers",
          "run_only_on(device): runs the test only on a given device [CPU | GPU]",
      )
      config.addinivalue_line(
          "markers",
          "with_downloads: runs the test using data present in tests/.data",
      )
      config.addinivalue_line(
          "markers",
          "nightly: runs the nightly test for QA.",
      )
      # Test dir and archive filepath.
      test_dir = join(dirname(__file__), __TEST_DATA_SUBDIR)
      test_data_archive = join(
          dirname(__file__), __TEST_DATA_SUBDIR, __TEST_DATA_FILENAME
      )
  
      # Get size of local test_data archive.
      try:
          test_data_local_size = getsize(test_data_archive)
      except:
          # File does not exist.
          test_data_local_size = -1
  
      if config.option.use_local_test_data:
          if test_data_local_size == -1:
              pytest.exit(
                  "Test data `{}` is not present in the system".format(
                      test_data_archive
                  )
              )
          else:
              print(
                  "Using the local `{}` test archive ({}B) found in the `{}` folder.".format(
                      __TEST_DATA_FILENAME,
                      test_data_local_size,
                      test_dir,
                  )
              )
  
      # Get size of remote test_data archive.
      url = None
      if not config.option.use_local_test_data:
          try:
              url = __TEST_DATA_URL + __TEST_DATA_FILENAME
              u = urllib.request.urlopen(url)
          except:
              # Couldn't access remote archive.
              if test_data_local_size == -1:
                  pytest.exit(
                      "Test data not present in the system and cannot access the '{}' URL".format(
                          url
                      )
                  )
              else:
                  print(
                      "Cannot access the '{}' URL, using the test data ({}B) found in the `{}` folder.".format(
                          url, test_data_local_size, test_dir
                      )
                  )
                  return
  
          # Get metadata.
          meta = u.info()
          test_data_remote_size = int(meta["Content-Length"])
  
          # Compare sizes.
          if test_data_local_size != test_data_remote_size:
              print(
                  "Downloading the `{}` test archive from `{}`, please wait...".format(
                      __TEST_DATA_FILENAME, __TEST_DATA_URL
                  )
              )
  
              extract_data_from_tar(
                  test_dir,
                  test_data_archive,
                  url=url,
                  local_data=config.option.use_local_test_data,
              )
  
          else:
              print(
                  "A valid `{}` test archive ({}B) found in the `{}` folder.".format(
                      __TEST_DATA_FILENAME,
                      test_data_local_size,
                      test_dir,
                  )
              )
  
      else:
          # untar local test data
          extract_data_from_tar(
              test_dir,
              test_data_archive,
              local_data=config.option.use_local_test_data,
          )
  
      if config.option.relax_numba_compat is not None:
          from nemo.core.utils import numba_utils
  
          print(
              "Setting numba compat :", config.option.relax_numba_compat
          )
          numba_utils.set_numba_compat_strictness(
              strict=config.option.relax_numba_compat
          )
  
imports: import logging
  import os.path
  import shutil
  import tarfile
  import tempfile
  import urllib.request
  from os import mkdir
  from os.path import dirname, exists, getsize, join
  from pathlib import Path
  from shutil import rmtree
  from typing import Tuple
  import pytest
  from tests.fixtures.tts import *
label_desc: Use image node_id 11 for calling a global function with example usage: pytest_configure(config) without return types