code: def escape_for_fnmatch(s):
      return s.replace("[", "&#91;").replace("]", "&#93;")
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 5 for calling a global function with example usage: escape_for_fnmatch(s) and returns: s