

def get_output_fmt(output_param):
    output_class = output_param['class']
    output_fmt = ''
    if output_class.startswith('array'):
        item_class = output_class[6:]
        if (item_class in class_to_dxclass):
            output_fmt = (('[dxpy.dxlink(item) for item in ' + output_param['name']) + ']')
        else:
            output_fmt = output_param['name']
    elif (output_class in class_to_dxclass):
        output_fmt = (('dxpy.dxlink(' + output_param['name']) + ')')
    else:
        output_fmt = output_param['name']
    return output_fmt

dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/templating/python.py get_output_fmt/original