code: def match(tgt, opts=None):
      '''
      Returns true if the passed glob matches the id
      '''
      if not opts:
          opts = __opts__
      if not isinstance(tgt, six.string_types):
          return False
  
      return fnmatch.fnmatch(opts['id'], tgtf match(tgt, opts=None):
      '''
      Returns true if the passed glob matches the id
      '''
      if not opts:
          opts = __opts__
      if not isinstance(tgt, six.string_types):
          return False
  
      return fnmatch.fnmatch(opts['id'], tgt)
docs: Returns true if the passed glob matches the id