def METHOD_NAME(job):
    """Format job as a table."""
    from msrestazure.tools import parse_resource_id
    row = OrderedDict()
    row['Name'] = job['name']
    cluster = parse_resource_id(job['cluster']['id'])
    row['Cluster'] = cluster['resource_name']
    row['Cluster RG'] = job['cluster']['resourceGroup']
    row['Cluster Workspace'] = cluster['name']
    row['Tool'] = job['toolType']
    row['Nodes'] = job['nodeCount']
    if job['provisioningState'] == 'deleting':
        row['State'] = 'deleting'
    else:
        row['State'] = job['executionState']
    if job['executionInfo'] and \
       job['executionInfo']['exitCode'] is not None:
        row['Exit code'] = str(job['executionInfo']['exitCode'])
    else:
        row['Exit code'] = ''
    return row