@staticmethod
def _get_id_hash(target_id):
    h = hashlib.sha256()
    h.update(target_id.encode(encoding='utf-8', errors='replace'))
    return h.hexdigest()[:7]
@staticmethod
def _get_id_hash(target_id):
    h = hashlib.sha256()
    h.update(target_id.encode(encoding='utf-8', errors='replace'))
    return h.hexdigest()[:7]