code: def str_to_pil_interp(mode_str):
      return _str_to_pil_interpolation[mode_str]
  
imports: import math
  import numbers
  import random
  import warnings
  from typing import List, Sequence, Tuple, Union
  import torch
  import torchvision.transforms.functional
  from PIL import Image
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: str_to_pil_interp(mode_str) and returns: _str_to_pil_interpolation