code: function isInFinally(node) {
      for (
          let currentNode = node;
          currentNode && currentNode.parent && !astUtils.isFunction(currentNode);
          currentNode = currentNode.parent
      ) {
          if (currentNode.parent.type === "TryStatement" && currentNode.parent.finalizer === currentNode) {
              return true;
          }
      }
  
      return false;
  }
docs: Checks whether the given return statement is in a `finally` block or not.
  
  @param {ASTNode} node - The return statement node to check.
  @returns {boolean} `true` if the node is in a `finally` block.