def layout(session_id, opts)
      raise ArgumentError, 'session_id not provided' if session_id.to_s.empty?
      raise ArgumentError, 'opts is empty' if opts.empty?
      response = @client.layout_streams(session_id, opts)
      (200..300).include? response.code
    end
def layout(session_id, opts)
      raise ArgumentError, 'session_id not provided' if session_id.to_s.empty?
      raise ArgumentError, 'opts is empty' if opts.empty?
      response = @client.layout_streams(session_id, opts)
      (200..300).include? response.code
    end
Use this method to set the layout of a composed (archive or broadcast) OpenTok stream.

 For example, you can call this method to set the layout classes of an OpenTok stream.
 The layout classes define how the stream is displayed in the layout of a live streaming
 broadcast or a composed archive. For more information, see
 {https://tokbox.com/developer/guides/broadcast/live-streaming/#assign-layout-classes-to-streams Assigning layout classes to streams in live streaming broadcasts}
 and {https://tokbox.com/developer/guides/archiving/layout-control.html Customizing the video layout for composed archives}.

 @param [String] session_id The session ID of the OpenTok session.
 @param [Hash] opts  A hash with one key <code>items</code> and value as array of objects having <code>stream_id</code> and <code>layoutClassList</code> properties.
 For more information, see Layout{https://tokbox.com/developer/rest/#change-stream-layout-classes-composed}
 @raise [ArgumentError] The session_id is invalid.
 @raise [OpenTokAuthenticationError] You are not authorized to fetch the stream information. Check your authentication credentials.
 @raise [OpenTokStreamLayoutError] The layout operation could not be performed due to incorrect layout values.
 @raise [OpenTokError] An OpenTok server error.