def METHOD_NAME(self, obj):
    """
    Defined to generate files for generated code products.
    @param obj: the instance of the event model to visit.
    """
    # Build filename here...
    # Make dictionary directly if it doesn't exist
    output_dir = os.environ["DICT_DIR"] + "/events"
    if not (os.path.isdir(output_dir)):
        os.makedirs(output_dir)
    self.__fp = []
    if len(obj.get_ids()) == 1:
        pyfile = "{}/{}.py".format(output_dir, obj.get_name())
        fd = open(pyfile, "w")
        self.__fp.append(fd)
    else:
        inst = 0
        for id in obj.get_ids():
            pyfile = "%s/%s_%d.py" % (output_dir, obj.get_name(), inst)
            inst += 1
            DEBUG.info(f"Open file: {pyfile}")
            fd = open(pyfile, "w")
            DEBUG.info(f"Completed {pyfile} open")
            self.__fp.append(fd)