class_docstr: Test demo data download functions.
class_docstr_tok: ["Test","demo","data","download","functions","."]
docstr: Create temporary directory to save files to.
docstr_tok: ["Create","temporary","directory","to","save","files","to","."]
code: def setUp(self):
      """Create temporary directory to save files to."""
      import tempfile
  
      self.base_dir = tempfile.mkdtemp()
      self.prev_dir = os.getcwd()
      os.chdir(self.base_dir)
  
imports: from __future__ import annotations
  import contextlib
  import io
  import os
  import sys
  import tarfile
  import unittest
  from collections import defaultdict
  from unittest import mock
  import pytest
label_desc: Use image node_id 1 for calling the TestDemo obj's underlying member method code with example usage: obj.setUp() without return types