code: def __enter__(self):
      self.__tmpdir = tempfile.mkdtemp()
      return self.__tmpdir
  
imports: import csv
  import os
  import shutil
  import subprocess
  import tempfile
  import unittest
  import matplotlib
  from six.moves import xrange
  from pyalgotrade import dataseries
label_desc: Use image node_id 2 for calling the TmpDir obj's underlying member method code with example usage: obj.__enter__() and returns: self