code: def normalize_filename(filename):
      """
      Replace invalid for file names characters with string equivalents
      :param some_string: string to be converted to a valid file name
      :return: valid file name
      """
      not_allowed_pattern = r"[\[\]\/:*?\"\'<>|+\0\\\s\x0b\x0c]"
      filename = re.sub(not_allowed_pattern, ".", filename)
      return re.sub(r"\.{2,}", ".", filename)
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 8 for calling a global function with example usage: normalize_filename(filename) and returns: re