code: def matches_pattern(self, other):
          
          matches = False
          if hasattr(other, 'addr'):
              if self.addr is None or other.addr is None:
                  matches = True
              else:
                  matches = self.addr == other.addr
          return matches
docs: Test Address object matches the pattern of another  object.