Let's imagine you have to implement a method with a definition
/// Set value to %session.Data ClassMethod setValue(params...) As %Status { }
How it should work
do ..setValue("key1", "val")
is equal to
set %session.Data("key1") = "val"
and
do ..setValue("key1", "key2", "key3", "key4", "val")
is equal to