code: def channel_type_to_operation(
      channel_type: ChannelType,
  ) -> alpha_operation.Operation:
      _channel_type_to_operation = {
          ChannelType.TEXT: alpha_operation.LogStrings,
          ChannelType.NUMERIC: alpha_operation.LogFloats,
          ChannelType.IMAGE: alpha_operation.LogImages,
      }
      return _map_using_dict(
          channel_type, "channel type", _channel_type_to_operation
      )
  
imports: import abc
  from collections import namedtuple
  from neptune.attributes import constants
  from neptune.internal import operation
  from neptune.internal.backends.api_model import AttributeType
  from neptune.internal.operation import ImageValue
  from neptune.legacy.exceptions import NeptuneException
  from neptune.legacy.internal.channels.channels import ChannelType, ChannelValueType
label_desc: Use image node_id 2 for calling a global function with example usage: channel_type_to_operation(channel_type) and returns: _map_using_dict