code: def get_name_locations(self, name):
          
          result = []
          for module in self.names:
              if name in self.names[module]:
                  try:
                      pymodule = self.project.get_module(module)
                      if name in pymodule:
                          pyname = pymodule[name]
                          module, lineno = pyname.get_definition_location()
                          if module is not None:
                              resource = module.get_module().get_resource()
                              if resource is not None and lineno is not None:
                                  result.append((resource, lineno))
                  except exceptions.ModuleNotFoundError:
                      pass
          return result
docs: Return a list of ``(resource, lineno)`` tuples