def MakeTrackMatrix(tracks, proposed_tracks=None):
  track_matrix = {}
  tracks = frozenset(tracks)
  if proposed_tracks is not None:
    proposed_tracks = frozenset(proposed_tracks)
    for track in common.TRACKS:
      if track in tracks and track in proposed_tracks:
        track_matrix[track] = 'current'
      elif track in tracks:
        track_matrix[track] = 'proposed_out'
      elif track in proposed_tracks:
        track_matrix[track] = 'proposed_in'
      else:
        track_matrix[track] = 'not_in'
  else:
    for track in common.TRACKS:
      if track in tracks:
        track_matrix[track] = 'current'
      else:
        track_matrix[track] = 'not_in'
  return track_matrix
Helper function to avoid code duplication between self._errors and
dataset/ETHPy150Open google/simian/src/simian/mac/common/util.py/MakeTrackMatrix--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/linear_model/ridge.py/_RidgeGCV._errors_and_values_helper