code: def filter_keep_phenotype_entry_ids(self, entry):
          '''
              doubt this should be kept
          '''
          omim_id = str(entry['mimNumber'])
          otype = self.globaltt['obsolete']
          if omim_id in self.omim_type:
              otype = self.omim_type[omim_id]
              if otype == self.globaltt['obsolete'] and omim_id in self.omim_replaced:
                  omim_id = self.omim_replaced[omim_id]
                  otype = self.omim_type[omim_id]
              # else:  # removed or multiple
  
          if otype not in (
                  self.globaltt['Phenotype'], self.globaltt['has_affected_feature']):
              omim_id = None
          return omim_if filter_keep_phenotype_entry_ids(self, entry):
          '''
              doubt this should be kept
          '''
          omim_id = str(entry['mimNumber'])
          otype = self.globaltt['obsolete']
          if omim_id in self.omim_type:
              otype = self.omim_type[omim_id]
              if otype == self.globaltt['obsolete'] and omim_id in self.omim_replaced:
                  omim_id = self.omim_replaced[omim_id]
                  otype = self.omim_type[omim_id]
              # else:  # removed or multiple
  
          if otype not in (
                  self.globaltt['Phenotype'], self.globaltt['has_affected_feature']):
              omim_id = None
          return omim_id
docs: doubt this should be kept