def METHOD_NAME(self, file_name):
    assert isinstance(
        file_name, str
    ), "Expected a string argument. Representing a file name"
    self.__file = open(file_name, "w")
    for extern in self.__defs.externs:
        self.__writeln("extern " + extern)
    for suite in self.__defs.suites:
        self.__write("suite ")
        self.__print_node(suite)
        clock = suite.get_clock()
        if clock:
            indent = Indentor()
            self.__writeln(str(clock))
            del indent
        self.__print_nc(suite)
        self.__writeln("endsuite")
    self.__file.close()