def create_working_dir(basedir, dirprefix):
    '\nCreates a directory in `basedir` with a prefix of `dirprefix`.\nThe directory will have a random 5 character string appended to `dirprefix`.\nReturns the path to the working directory.\n    :rtype : str\n    :param basedir: str, the directory in which to create the working directory\n    :param dirprefix: str, prefix to prepend to the working directory\n    '
    workingdir = None
    try:
        workingdir = tempfile.mkdtemp(prefix=dirprefix, dir=basedir)
    except Exception as exc:
        raise SystemError('Could not create workingdir in {0}.\nException: {1}'.format(basedir, exc))
    return workingdir
Creates a directory in `basedir` with a prefix of `dirprefix`.
The directory will have a random 5 character string appended to `dirprefix`.
Returns the path to the working directory.
    :rtype : str
    :param basedir: str, the directory in which to create the working directory
    :param dirprefix: str, prefix to prepend to the working directory
def create_working_dir(basedir, dirprefix):
    '\nCreates a directory in `basedir` with a prefix of `dirprefix`.\nThe directory will have a random 5 character string appended to `dirprefix`.\nReturns the path to the working directory.\n    :rtype : str\n    :param basedir: str, the directory in which to create the working directory\n    :param dirprefix: str, prefix to prepend to the working directory\n    '
    workingdir = None
    try:
        workingdir = tempfile.mkdtemp(prefix=dirprefix, dir=basedir)
    except Exception as exc:
        raise SystemError('Could not create workingdir in {0}.\nException: {1}'.format(basedir, exc))
    return workingdir