code: def _infer_sliding_window_type(
      channel: channel_types.BaseChannel, **kwargs
  ):  # pylint: disable=unused-argument
      return {"window": channel.type}
  
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 18 for calling a global function with example usage: _infer_sliding_window_type(channel) and returns: dict