class_docstr: Factory for temporary directories under the common base temp directory.
  
  The base directory can be configured using the ``--basetemp`` option.
class_docstr_tok: ["Factory","for","temporary","directories","under","the","common","base","temp","directory",".","The","base","directory","can","be","configured","using","the","``","--","basetemp","``","option","."]
docstr: :param config: a pytest configuration
docstr_tok: [":","param","config",":","a","pytest","configuration"]
code: def from_config(cls, config):
      """
      :param config: a pytest configuration
      """
      return cls(
          given_basetemp=config.option.basetemp,
          trace=config.trace.get("tmpdir"),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import re
  import tempfile
  import warnings
  import attr
  import py
  import six
  import pytest
  from .pathlib import ensure_reset_dir
  from .pathlib import LOCK_TIMEOUT
  from .pathlib import make_numbered_dir
  from .pathlib import make_numbered_dir_with_cleanup
  from .pathlib import Path
  from _pytest.monkeypatch import MonkeyPatch
label_desc: Use image node_id 1 for calling the TempPathFactory obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls