code: def replace_movie_ids(id_string, id_map):
      pattern = r"@\d+"
      return re.sub(pattern, lambda s: id_map[s.group()], id_string)
  
imports: from parlai.core.teachers import FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
  import json
  import re
  import csv
label_desc: Use image node_id 3 for calling a global function with example usage: replace_movie_ids(id_string, id_map) and returns: re