import json


def parse_user_seq(line):
  """Parses a sequence of ids from a line of the ml_user_sequences dataset."""
  sequence_string = line.strip('()').split(',', 1)[1]
  return json.loads(sequence_string)