class_docstr: Instance of the `cache` fixture.
class_docstr_tok: ["Instance","of","the","`","cache","`","fixture","."]
docstr: Return a directory path object with the given name.
  
  If the directory does not yet exist, it will be created. You can use
  it to manage files to e.g. store/retrieve database dumps across test
  sessions.
  
  .. versionadded:: 7.0
  
  :param name:
      Must be a string not containing a ``/`` separator.
      Make sure the name contains your plugin or application
      identifiers to prevent clashes with other cache users.
docstr_tok: ["Return","a","directory","path","object","with","the","given","name",".","If","the","directory","does","not","yet","exist",",","it","will","be","created",".","You","can","use","it","to","manage","files","to","e.g",".","store\/retrieve","database","dumps","across","test","sessions",".","..","versionadded",":",":","7.0",":","param","name",":","Must","be","a","string","not","containing","a","``","\/","``","separator",".","Make","sure","the","name","contains","your","plugin","or","application","identifiers","to","prevent","clashes","with","other","cache","users","."]
code: def mkdir(self, name: str) -> Path:
      """Return a directory path object with the given name.
  
      If the directory does not yet exist, it will be created. You can use
      it to manage files to e.g. store/retrieve database dumps across test
      sessions.
  
      .. versionadded:: 7.0
  
      :param name:
          Must be a string not containing a ``/`` separator.
          Make sure the name contains your plugin or application
          identifiers to prevent clashes with other cache users.
      """
      path = Path(name)
      if len(path.parts) > 1:
          raise ValueError(
              "name is not allowed to contain path separators"
          )
      res = self._cachedir.joinpath(self._CACHE_PREFIX_DIRS, path)
      res.mkdir(exist_ok=True, parents=True)
      return res
  
imports: import dataclasses
  import json
  import os
  from pathlib import Path
  from typing import Dict
  from typing import final
  from typing import Generator
  from typing import Iterable
  from typing import List
  from typing import Optional
  from typing import Set
  from typing import Union
  from .pathlib import resolve_from_str
  from .pathlib import rm_rf
  from .reports import CollectReport
  from _pytest import nodes
  from _pytest._io import TerminalWriter
  from _pytest.config import Config
  from _pytest.config import ExitCode
  from _pytest.config import hookimpl
  from _pytest.config.argparsing import Parser
  from _pytest.deprecated import check_ispytest
  from _pytest.fixtures import fixture
  from _pytest.fixtures import FixtureRequest
  from _pytest.main import Session
  from _pytest.nodes import Directory
  from _pytest.nodes import File
  from _pytest.reports import TestReport
label_desc: Use image node_id 6 for calling the Cache obj's underlying member method code with example usage: obj.mkdir(name) and returns: res