def METHOD_NAME(self):
    """Create a temporary directory that will be cleaned up.
    Returns the path of the directory.
    """
    d = tempfile.METHOD_NAME()
    self.tempdirs.append(d)
    return d