def METHOD_NAME(self, variables):
    """
    Returns an instance of Independencies containing the local independencies
    of each of the variables.
    Parameters
    ----------
    variables: str or array like
        variables whose local independencies are to found.
    Examples
    --------
    >>> from pgmpy.models import NaiveBayes
    >>> model = NaiveBayes()
    >>> model.add_edges_from([('a', 'b'), ('a', 'c'), ('a', 'd')])
    >>> ind = model.local_independencies('b')
    >>> ind
    (b \u27C2 d, c | a)
    """
    independencies = Independencies()
    for variable in [variables] if isinstance(variables, str) else variables:
        if variable != self.dependent:
            independencies.add_assertions(
                [variable, list(set(self.features) - set(variable)), self.dependent]
            )
    return independencies