code: def _clean_output(output: str) -> str:
      # Removes color characters.
      return (
          output.replace("\x1b[0m", "")
          .replace("\x1b[31m", "")
          .replace("\x1b[32m", "")
          .replace("\x1b[33m", "")
          .strip()
      )
  
file_path: allennlp/tests/commands/diff_test.py
imports: import sys
  import torch
  from torch.nn import Parameter
  from allennlp.commands import main
  from allennlp.common.testing import AllenNlpTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: _clean_output(output) and returns: output