def get_port_types(name):
    if isinstance(name, tuple) or isinstance(name, list):
        return [get_port_types(x) for x in name]
    if name in type_map_dict:
        return type_map_dict[name]
    else:
        if name is not None and name.strip():
            #if not name.startswith("vtk"):
            #    print "RETURNING RAW TYPE:", name
            return name
    return None
Sets the target and the args to be provided to this background request.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/vtk/vtk_wrapper/parse.py/get_port_types--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/runtime/background.py/_BackgroundRequest.ProvideCallable