code: def escape_for_fnmatch(s):
      return s.replace("[", "&#91;").replace("]", "&#93;")
  
file_path: catboost/library/python/testing/filter/filter.py
imports: import re
  import fnmatch
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: escape_for_fnmatch(s) and returns: s