code: def test_handle_non_pil_as_input():
      non_pil_input = np.uint8(
          np.random.uniform(150, 180, (3, 224, 224))
      )
  
      transformed = apply_transforms(non_pil_input)
  
      assert isinstance(transformed, torch.Tensor)
      assert transformed.requires_grad
  
imports: import pytest
  from os import path
  from PIL import Image
  import numpy
  import torch
  from flashtorch.utils import load_image, apply_transforms, denormalize, standardize_and_clip, format_for_plotting
label_desc: Use image node_id 3 for calling a global function with example usage: test_handle_non_pil_as_input() without return types