original_docstring: 
      This operation assigns the alias to the index and removes the alias
      from any other indices it might be assigned to.
      
docstring: This operation assigns the alias to the index and removes the alias
  from any other indices it might be assigned to.
docstring_tokens: This operation assigns the alias to the index and removes the alias from any other indices it might be assigned to .
code: def assume_alias(es, index, alias):
      """
      This operation assigns the alias to the index and removes the alias
      from any other indices it might be assigned to.
      """
      if es.indices.exists_alias(None, alias):
          # this part removes the conflicting aliases
          alias_indices = list(es.indices.get_alias(alias))
          for aliased_index in alias_indices:
              es.indices.delete_alias(aliased_index, alias)
      es.indices.put_alias(index, alias)
code_tokens: def assume_alias ( es , index , alias ) : if es . indices . exists_alias ( None , alias ) : alias_indices = list ( es . indices . get_alias ( alias ) ) for aliased_index in alias_indices : es . indices . delete_alias ( aliased_index , alias ) es . indices . put_alias ( index , alias )
short_docstring: This operation assigns the alias to the index and removes the alias
  from any other indices it might be assigned to.
short_docstring_tokens: This operation assigns the alias to the index and removes the alias from any other indices it might be assigned to .
comment: """
      This operation assigns the alias to the index and removes the alias
      from any other indices it might be assigned to.
      """$SEP$# this part removes the conflicting aliases