docstr: Return a copy of this ruleinfo.
docstr_tok: ["Return","a","copy","of","this","ruleinfo","."]
code: def __copy__(self):
      """Return a copy of this ruleinfo."""
      ruleinfo = RuleInfo(self.func)
      for attribute in self.__dict__:
          if attribute in self.ref_attributes:
              setattr(ruleinfo, attribute, getattr(self, attribute))
          else:
              # shallow copies are enough
              setattr(
                  ruleinfo, attribute, copy(getattr(self, attribute))
              )
      return ruleinfo
  
imports: from collections import namedtuple
  from copy import copy
label_desc: Use image node_id 2 for calling the RuleInfo obj's underlying member method code with example usage: obj.__copy__() and returns: ruleinfo