old_contents: import logging
  
  logger = logging.getLogger(__name__)
  
  
  def ids_from_comma_separated_str(comma_separated_string):
      id_list = []
      if len(input) > 0:
          id_list = [int(cid) for cid in comma_separated_string.split(",") if len(cid) > 0]
      return id_list
  
new_contents: import logging
  
  logger = logging.getLogger(__name__)
  
  
  def ids_from_comma_separated_str(comma_separated_string):
      id_list = []
      if len(comma_separated_string) > 0:
          id_list = [int(cid) for cid in comma_separated_string.split(",") if len(cid) > 0]
      return id_list
  
subject: fix string parsing in collections from topic preview (#981)