original_docstring: 
          Composes the segment, applying all effects
  
          Returns
          -------
          A new segment with all effects applied
          
docstring: Composes the segment, applying all effects
  Returns
  
  A new segment with all effects applied
docstring_tokens: Composes the segment applying all effects Returns A new segment with all effects applied
code: def apply_effects(self) -> 'Segment':
          """
          Composes the segment, applying all effects
  
          Returns
          -------
          A new segment with all effects applied
          """
          segment = self.copy()
  
          for effect in self.effects:
              if isinstance(effect, v_effects.FadeIn):
                  segment = segment.fadein(effect.duration, effect.rgb_color)
                  if segment.audio:
                      segment.audio = segment.audio.audio_fadein(effect.duration)
              elif isinstance(effect, v_effects.FadeOut):
                  segment = segment.fadeout(effect.duration, effect.rgb_color)
                  if segment.audio:
                      segment.audio = segment.audio.audio_fadeout(effect.duration)
  
          return segment
code_tokens: def apply_effects ( self ) -> 'Segment' : segment = self . copy ( ) for effect in self . effects : if isinstance ( effect , v_effects . FadeIn ) : segment = segment . fadein ( effect . duration , effect . rgb_color ) if segment . audio : segment . audio = segment . audio . audio_fadein ( effect . duration ) elif isinstance ( effect , v_effects . FadeOut ) : segment = segment . fadeout ( effect . duration , effect . rgb_color ) if segment . audio : segment . audio = segment . audio . audio_fadeout ( effect . duration ) return segment
short_docstring: Composes the segment, applying all effects
  Returns
short_docstring_tokens: Composes the segment applying all effects Returns
comment: """
          Composes the segment, applying all effects
  
          Returns
          -------
          A new segment with all effects applied
          """