code: def add(self, package, version, locations):
      if package in self:
          self[package].comments.extend(locations)
      else:
          self[package] = self._Detail(version, locations)
  
imports: from __future__ import print_function, division, absolute_import
  import collections
label_desc: Use image node_id 2 for calling the ReqsModules obj's underlying member method code with example usage: obj.add(package, version, locations) without return types