def local_channel(obj): """ Return the parallel region local channel number `obj` is executing in. The channel number is in the range of zero to ``local_max_channel(obj)``. Args: obj: Instance of a class executing within Streams. Returns: int: Parallel region local channel number or -1 if not located in a parallel region. """ return _ec.local_channel(_get_opc(obj))