code: def get_id_by_impath(path):
          '''
          The the entity id by the path.
          '''
          logger.info('Get Entiry, Path: {0}'.format(path))
  
          entity_list = TabEntity.select().where(TabEntity.path == path)
          out_val = None
          if entity_list.count() == 1:
              out_val = entity_list.get()
          elif entity_list.count() > 1:
              for rec in entity_list:
                  MEntity.delete(rec.uid)
              out_val = None
          else:
              pass
          return out_vaf get_id_by_impath(path):
          '''
          The the entity id by the path.
          '''
          logger.info('Get Entiry, Path: {0}'.format(path))
  
          entity_list = TabEntity.select().where(TabEntity.path == path)
          out_val = None
          if entity_list.count() == 1:
              out_val = entity_list.get()
          elif entity_list.count() > 1:
              for rec in entity_list:
                  MEntity.delete(rec.uid)
              out_val = None
          else:
              pass
          return out_val
docs: The the entity id by the path.