code: def _interpolation(kwargs):
      interpolation = kwargs.pop("resample", Image.BILINEAR)
      if isinstance(interpolation, (list, tuple)):
          return random.choice(interpolation)
      else:
          return interpolation
  
imports: import math
  import numpy
  import random
  import re
  import PIL
  from PIL import Image, ImageEnhance, ImageOps
label_desc: Use image node_id 1 for calling a global function with example usage: _interpolation(kwargs) and returns: random, interpolation