tf.variable_scope
It is a context manager that makes it easier to work with variable scopes. As the documentation describes it:
A context manager for defining ops that creates variables (layers).
This context manager validates that the (optional) values are from the same graph, ensures that graph is the default graph, and pushes a name scope and a variable scope.