def rax_clb_node_to_dict(obj):
 if (not obj):
  return {}
 node = obj.to_dict()
 node['id'] = obj.id
 node['weight'] = obj.weight
 return node

def rax_clb_node_to_dict ( obj ) : if ( not obj ) : return { } node = obj . to_dict ( ) node [ 'id' ] = obj . id node [ 'weight' ] = obj . weight return node
function to convert a clb node object to a dict .