def _manual_join_columns(columns_to_join):
 manual_joins = []
 columns_to_join_new = copy.copy(columns_to_join)
 for column in ('metadata', 'system_metadata', 'pci_devices'):
  if (column in columns_to_join_new):
   columns_to_join_new.remove(column)
   manual_joins.append(column)
 return (manual_joins, columns_to_join_new)

def _manual_join_columns ( columns_to_join ) : manual_joins = [ ] columns_to_join_new = copy . copy ( columns_to_join ) for column in ( 'metadata' , 'system_metadata' , 'pci_devices' ) : if ( column in columns_to_join_new ) : columns_to_join_new . remove ( column ) manual_joins . append ( column ) return ( manual_joins , columns_to_join_new )
separate manually joined columns from columns_to_join if columns_to_join contains metadata .