def METHOD_NAME(ipu_opts: Optional[List[str]]) -> tempfile._TemporaryFileWrapper:
    """
    Create a temporary file from a list of ipu configs, such that it can be read by `poptorch.Options.loadFromFile`
    Parameters:
        ipu_opts: The list  configurations for the IPU, written as a list of strings to make use of `poptorch.Options.loadFromFile`
    Returns:
        tmp_file: The temporary file of ipu configs
    """
    if ipu_opts is None:
        return
    tmp_file = tempfile.NamedTemporaryFile("w", delete=True)
    for s in ipu_opts:
        tmp_file.write(s + "\n")
    tmp_file.flush()
    return tmp_file