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

def _apply_scope(self, scope, builder):
        """
        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
        """
        if callable(scope):
            scope(builder)
        elif isinstance(scope, Scope):
            scope.apply(builder, self.get_model())