code: def onehot_handle_unknown_transformer_shape_calculator(operator):
      op = operator.raw_operator
      input_type = operator.inputs[0].type.__class__
      input_dim = operator.inputs[0].type.shape[0]
      output_type = input_type(
          [input_dim, sum([len(c) for c in op.categories_])]
      )
      operator.outputs[0].type = output_type
  
imports: import os
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: onehot_handle_unknown_transformer_shape_calculator(operator) without return types