<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def call_sacrebleu(input_fname: str, ref_fname: str, output_fname: str, log_fname: str, tokenized: bool = False):
 """ Call pip-installed sacrebleu on tokenized or detokenized inputs. :param input_fname: Input translation file. :param ref_fname: Reference translation file. :param output_fname: Output score file. :param log_fname: Location to write log file. :param tokenized: Whether inputs are tokenized (or byte-pair encoded). """

    # Assemble command
    command = ["sacrebleu",
               "--score-only",
               "--input={}".format(input_fname),
               ref_fname]
    # Already tokenized?
    if tokenized:
        command.append("--tokenize=none")
    # Call sacrebleu
    with open(log_fname, "wb") as log:
        logging.info("sacrebleu: %s -> %s", input_fname, output_fname)
        logging.info("Log: %s", log_fname)
        score = subprocess.check_output(command, stderr=log)
    # Record successful score
    with open(output_fname, "wb") as out:
        out.write(score)