code: def has_magic(s):
      if isinstance(s, bytes):
          match = magic_check_bytes.search(s)
      else:
          match = magic_check.search(s)
      return match is not None
  
file_path: mars/mars/lib/filesystem/_oss_lib/glob.py
imports: import fnmatch
  import os
  import re
  from .common import oss_exists, oss_isdir, oss_scandir
label_desc: Use image node_id 7 for calling a global function with example usage: has_magic(s) and returns: unknown