code: def _sanitize_str(s: Union[str, bytes]) -> str:
      if isinstance(s, str):
          sanitized = s
      elif isinstance(s, bytes):
          sanitized = s.decode("utf-8", errors="ignore")
      else:
          sanitized = str(s)
      if len(sanitized) < 64:  # noqa: PLR2004
          return sanitized
      return sanitized[:64] + f"...<+len={(len(sanitized) - 64)}>"
  
imports: import collections.abc
  import numbers
  import struct
  from cmath import isnan
  from typing import Any, Callable, Dict, KeysView, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  import google.protobuf.message
  import numpy
  from onnx import IR_VERSION, AttributeProto, FunctionProto, GraphProto, MapProto, ModelProto, NodeProto, OperatorSetIdProto, OptionalProto, SequenceProto, SparseTensorProto, TensorProto, TensorShapeProto, TrainingInfoProto, TypeProto, ValueInfoProto, defs, mapping, subbyte
label_desc: Use image node_id 35 for calling a global function with example usage: _sanitize_str(s) and returns: unknown, sanitized