def generate_prompt_landmark(self, prefix_length, suffix_length):
        """Generates a text file and inserts an passkey at a random position."""
        city = random.choice(RANDOM_NEEDLE_CITIES)
        magic_number = random.randint(1, 50000)
        garbage_prefix = self.generate_garbage(prefix_length)
        garbage_suffix = self.generate_garbage(suffix_length)
        information_line = NEEDLE_TEMPLATE.format(city=city, rnd_number=magic_number)
        final_question = QUESTION_TEMPLATE.format(city=city)
        lines = [
            garbage_prefix,
            information_line,
            garbage_suffix,
            final_question,
        ]
        context = "\n".join(lines)
        return OURS_TEMPLATE.format(context=context), str(magic_number)
Generates a text file and inserts an passkey at a random position.
YOCO/yoco/criterions/needle_haystack.py