def _get_src(tree_base, source, saltenv='base'):
    parsed = _urlparse(source)
    sbase = os.path.basename(source)
    dest = os.path.join(tree_base, sbase)
    if parsed.scheme:
        __salt__['cp.get_url'](source, dest, saltenv=saltenv)
    else:
        shutil.copy(source, dest)
Returns a json-schema document that represents an task entity.
dataset/ETHPy150Open saltstack/salt/salt/modules/debbuild.py/_get_src--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/image.py/JSONSchemaManager.image_task