code: def lerp_np(x, y, w):
      """Helper function."""
      fin_out = (y - x) * w + x
      return fin_out
  
file_path: anomalib/src/anomalib/data/utils/generators/perlin.py
imports: from __future__ import annotations
  import math
  import numpy
  import torch
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: lerp_np(x, y, w) and returns: fin_out