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 likes e. g. store/retrieve database
  dumps across test sessions.
  
  :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","likes","e.","g.","store\/retrieve","database","dumps","across","test","sessions",".",":","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 makedir(self, name):
      """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 likes e. g. store/retrieve database
      dumps across test sessions.
  
      :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.
      """
      name = Path(name)
      if len(name.parts) > 1:
          raise ValueError(
              "name is not allowed to contain path separators"
          )
      res = self._cachedir.joinpath("d", name)
      res.mkdir(exist_ok=True, parents=True)
      return py.path.local(res)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  from collections import OrderedDict
  import attr
  import py
  import six
  import pytest
  from .compat import _PY2
  from .pathlib import Path
  from .pathlib import resolve_from_str
  from .pathlib import rm_rf
label_desc: Use image node_id 4 for calling the Cache obj's underlying member method code with example usage: obj.makedir(name) and returns: py