def MakeLabelList(self, is_friend):
    if is_friend:
      labels = [label for label in self.labels if label in User._USER_FRIEND_LABELS]
      labels.append('friend')
      return labels
    else:
      return [label for label in self.labels if label in User._USER_NON_FRIEND_LABELS]
Sanatization of comments
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/user.py/User.MakeLabelList--crossover with--dataset/ETHPy150Open coursera/dataduct/dataduct/database/sql/tests/test_sql_statement.py/TestSqlStatement.test_sanatization_multiline_comment