code: def convert_masks_to_RGB(func, clip, *args, **kwargs):
      """If the clip is a mask, convert it to RGB before running the function."""
      if clip.is_mask:
          clip = clip.to_RGB()
      return func(clip, *args, **kwargs)
  
file_path: moviepy/moviepy/decorators.py
imports: import inspect
  import os
  import decorator
  from moviepy.tools import convert_to_seconds
label_desc: Use image node_id 2 for calling a global function with example usage: convert_masks_to_RGB(func, clip) and returns: func