code: def _slice(artifacts, **kwargs):
      # It's important to not pass the None value which cannot be serialized to IR.
      kwargs = {k: v for k, v in kwargs.items() if v is not None}
      return ops.Slice(artifacts, **kwargs)
  
imports: from typing import Optional, Sequence, Union
  from absl import logging
  from tfx.dsl.input_resolution import resolver_function
  from tfx.dsl.input_resolution.ops import ops
  from tfx.types import artifact
  from tfx.types import channel
label_desc: Use image node_id 14 for calling a global function with example usage: _slice(artifacts) and returns: ops