Method used for defining full path name for particular tensor at build time.
        For example, `tf.get_variable` creates variable w/o taking into account
        name scopes and `tf_pathname` consists of all parts of scope names
        which were used up to that point - `tf.get_variable` call.

def tf_pathname(self):
        """
        Method used for defining full path name for particular tensor at build time.
        For example, `tf.get_variable` creates variable w/o taking into account
        name scopes and `tf_pathname` consists of all parts of scope names
        which were used up to that point - `tf.get_variable` call.
        """
        if self.parent is self:
            return self.tf_name_scope
        tail = self.pathname.split('/', 1)[-1]
        leader = self.root.tf_name_scope
        return "{leader_name}/{tail_name}".format(leader_name=leader, tail_name=tail)