code: def ensure_contiguous(
      func: Callable[Concatenate[np.ndarray, P], np.ndarray]
  ) -> Callable[Concatenate[np.ndarray, P], np.ndarray]:
      """Ensure that input img is contiguous."""
  
      @wraps(func)
      def wrapped_function(
          img: np.ndarray, *args: P.args, **kwargs: P.kwargs
      ) -> np.ndarray:
          img = np.require(img, requirements=["C_CONTIGUOUS"])
          result = func(img, *args, **kwargs)
          return result
  
      return wrapped_function
  
imports: from functools import wraps
  from typing import Callable, Union
  import cv2
  import numpy
  from typing_extensions import Concatenate, ParamSpec
  from albumentations.core.keypoints_utils import angle_to_2pi_range
  from albumentations.core.transforms_interface import KeypointInternalType
label_desc: Use image node_id 9 for calling a global function with example usage: ensure_contiguous(func) and returns: wrapped_function, result