def str2val(val, format="%5.2f", na="na", list_detection=False):

    if val is None:
        return val

    def _convert(v):
        try:
            x = int(v)
        except ValueError:
            try:
                x = float(v)
            except ValueError:
                return v
        return x

    if list_detection and "," in val:
        return [_convert(v) for v in val.split(",")]
    else:
        return _convert(val)
Creates a staging directory for uploading.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/str2val--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/appcfg_java.py/JavaAppUpdate.CreateStagingDirectory