fix_not_tuple_object

cocohelper.utils.utils.fix_not_tuple_object(obj_val)[source]

If object is not an array-like object, it will return a tuple containing that object.

Parameters:

obj_val (Any) – an array-like object or an object/value.

Returns:

a tuple containing the object/value or a conversion of the array-like object to a tuple.