def get_actor_info(file_location):
    """
      Gets the information tied to each acter id needed to build the tree.
      This includes the actors real name and movies they appeared in.

      Args:
        file_location: location of the data file that holds the actor information
    """
    actor_id_to_name = {}
    actor_id_to_titles = {}
    # Read file
    lines = open(file_location, errors='ignore')
    # Skip header
    next(lines)
    # Process data
    for line in lines:
        # Split lines into their major parts
        parts = line.replace('\n', '')
        parts = parts.split('\t')
        # parts[0] is id and parts[1] is the actor's name
        actor_id_to_name[parts[0]] = parts[1]
        # parts[0] is id and parts[5].split(',') gets a list of movies
        actor_id_to_titles[parts[0]] = parts[-1].split(',')
    # Build name to actor_id for easy lookup
    name_to_actor_id = {}
    for actor_id, name in actor_id_to_name.items():
        # Lower case the name to account for misinputs
        name = name.lower()
        if name not in name_to_actor_id:
            name_to_actor_id[name] = actor_id
    return actor_id_to_name, name_to_actor_id, actor_id_to_titles