'Return name of the parent object if any.
A parent object is identified by the first occuring dot.'

def get_parent_name(self):

    (dot_idx, _) = self.token_next_by(m=(T.Punctuation, '.'))
    (_, prev_) = self.token_prev(dot_idx)
    return (remove_quotes(prev_.value) if (prev_ is not None) else None)
