code: def with_name(self, name):
      
      with self.g.as_default(), tf.variable_scope(name) as var_scope:
        name_scope = scopes.get_current_name_scope()
        return _DeferredLayer(self.bookkeeper,
                              None,
                              (),
                              {},
                              scope=(name_scope, var_scope),
                              defaults=self._defaults,
                              pass_through=self,
                              partial_context=self._partial_context)
docs: Sets the name scope for future operations.