def METHOD_NAME(self, embedding_variable, filepath):
    """
    This function is used to save the specified embedding variables 
    to host file.
    When multiple CPU processes is used, this function must be called 
    within each CPU processes.
    Parameters
    ----------
    embedding_variable: sok.EmbeddingVariable, tf.DistributedVariable
            The variable from embedding layer which needs to be dumped
            to file.
    filepath: string
            The directory where the parameters will be dumped to.
    Returns
    -------
    status: tf.Tensor
            If this op executed successfully, then 'OK' will be returned.
    """
    # TODO: check whether embedding_variable is an instance of DistributedVariable
    if hasattr(embedding_variable, "emb_handle"):
        # horovod branch
        return kit_lib.METHOD_NAME(embedding_variable.emb_handle, filepath)
    else:
        # strategy branch
        return kit_lib.METHOD_NAME(embedding_variable.values[0].emb_handle, filepath)