code: def safe_index(cls, unique_id):
          
          index = unique_id
          if unique_id:
              index = unique_id.replace("/", "_").lower()
          return index
docs: Return a valid elastic index generated from unique_id