code: def _apply_scope(self, scope, builder):
          
          if callable(scope):
              scope(builder)
          elif isinstance(scope, Scope):
              scope.apply(builder, self.get_model())
docs: Apply a single scope on the given builder instance.
  
          :param scope: The scope to apply
          :type scope: callable or Scope
  
          :param builder: The builder to apply the scope to
          :type builder: Builder