code: def requires_fps(func, clip, *args, **kwargs):
      """Raises an error if the clip has no fps."""
      if not hasattr(clip, "fps") or clip.fps is None:
          raise ValueError("Attribute 'fps' not set")
      else:
          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 6 for calling a global function with example usage: requires_fps(func, clip) and returns: func