@composite<EOL>def _path_root(draw, result_type):
<EOL>def tp(s='<STR_LIT>'):<EOL><INDENT>return _str_to_path(s, result_type)<EOL><DEDENT>if os.name != '<STR_LIT>':<EOL><INDENT>return tp(os.sep)<EOL><DEDENT>sep = sampled_from([os.sep, os.altsep or os.sep]).map(tp)<EOL>name = _filename(result_type)<EOL>char = characters(min_codepoint=ord("<STR_LIT:A>"), max_codepoint=ord("<STR_LIT:z>")).map(<EOL>lambda c: tp(str(c)))<EOL>relative = sep<EOL>drive = builds(lambda *x: tp().join(x), char, just(tp('<STR_LIT::>')), sep)<EOL>extended = builds(<EOL>lambda *x: tp().join(x), sep, sep, just(tp('<STR_LIT:?>')), sep, drive)<EOL>network = one_of([<EOL>builds(lambda *x: tp().join(x), sep, sep, name, sep, name, sep),<EOL>builds(lambda *x: tp().join(x),<EOL>sep, sep, just(tp('<STR_LIT:?>')), sep, name, sep, name, sep),<EOL>builds(lambda *x: tp().join(x),<EOL>sep, sep, just(tp('<STR_LIT:?>')), sep, just(tp('<STR_LIT>')), sep, name, sep,<EOL>name, sep),<EOL>builds(lambda *x: tp().join(x),<EOL>sep, sep, just(tp('<STR_LIT:.>')), sep, name, sep),<EOL>])<EOL>final = one_of(relative, drive, extended, network)<EOL>return draw(final)<EOL>
Generates a root component for a path.