class_docstr: An entry has one or more user-agents and zero or more rulelines
docstr: check if this entry applies to the specified agent
docstr_tok: ["check","if","this","entry","applies","to","the","specified","agent"]
code: def applies_to(self, useragent):
      """check if this entry applies to the specified agent"""
      # split the name token and make it lower case
      useragent = useragent.split("/")[0].lower()
      for agent in self.useragents:
          if agent == "*":
              # we have the catch-all agent
              return True
          agent = agent.lower()
          if agent in useragent:
              return True
      return False
  
imports: import collections
  import urllib.parse
  import urllib.request
label_desc: Use image node_id 3 for calling the Entry obj's underlying member method code with example usage: obj.applies_to(useragent) and returns: False, True, True