code: def get_name(self):
          
          if self.type is not None and self.name.endswith("." + self.type):
              return self.name[:len(self.name) - len(self.type) - 1]
          return self.name
docs: Name accessor