function ensureIsNotNested(method) {
        const runable = runner.currentRunable();
        if (runable !== null && runable !== undefined) {
          throw new Error("'" + method + "' should only be used in 'describe' function");
        }
      }
Configures whether Jasmine should allow the same function to be spied on
more than once during the execution of a spec. By default, spying on
a function that is already a spy will cause an error.
@name Env#allowRespy
@function
@since 2.5.0
@param {boolean} allow Whether to allow respying