(scope, name)
expand tf scope by given name.
expand tf scope by given name.
expand tf scope by given name .
def expand_scope_by_name(scope, name):
    """ expand tf scope by given name.
    """

    if isinstance(scope, str):
        scope += "/" + name
        return scope

    if scope is not None:
        return scope.name + "/" + name
    else:
        return scope
def expand_scope_by_name ( scope , name ) : if isinstance ( scope , str ) : scope += "/" + name return scope if scope is not None : return scope . name + "/" + name else : return scope