class_docstr: backward comptibility wrapper that implements
  :class:``py.path.local`` for :class:``TempPathFactory``
class_docstr_tok: ["backward","comptibility","wrapper","that","implements",":","class",":","``","py.path.local","``","for",":","class",":","``","TempPathFactory","``"]
docstr: Create a subdirectory of the base temporary directory and return it.
  If ``numbered``, ensure the directory is unique by adding a number
  prefix greater than any existing one.
docstr_tok: ["Create","a","subdirectory","of","the","base","temporary","directory","and","return","it",".","If","``","numbered","``",",","ensure","the","directory","is","unique","by","adding","a","number","prefix","greater","than","any","existing","one","."]
code: def mktemp(self, basename, numbered=True):
      """Create a subdirectory of the base temporary directory and return it.
      If ``numbered``, ensure the directory is unique by adding a number
      prefix greater than any existing one.
      """
      return py.path.local(
          self._tmppath_factory.mktemp(basename, numbered).resolve()
      )
  
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 2 for calling the TempdirFactory obj's underlying member method code with example usage: obj.mktemp(basename, numbered) and returns: py