code: def _do_register(cls, code, name, hash_name=None, hash_new=None):
          
          cls._func_from_name[name.replace('-', '_')] = code
          cls._func_from_name[name.replace('_', '-')] = code
          if hash_name:
              cls._func_from_hash[hash_name] = code
          cls._func_hash[code] = cls._hash(hash_name, hash_new)
docs: Add hash function data to the registry without checks.