code: def output_statistics(scores: Score, stats_out: str) -> None:
      """Write computed stats to file.
  
      Statistics are written to specified `stats_out` file.
  
      Parameters
      ----------
      scores: dict
          Dictionary mapping names of metrics to scores.
      stats_out: str
          Name of file to write scores to.
      """
      logger.warning("output_statistics is deprecated.")
      with open(stats_out, "w") as statsfile:
          statsfile.write(str(scores) + "\n")
  
imports: import csv
  import logging
  import warnings
  from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
  import numpy
  import deepchem
  from deepchem.metrics import Metric
label_desc: Use image node_id 1 for calling a global function with example usage: output_statistics(scores, stats_out) without return types