code: def convert_model_from_external_data(model: ModelProto) -> None:
      """
      Call to set all tensors which use external data as embedded data.
      save_model saves all the tensors data as embedded data after
      calling this function.
  
      Arguments:
          model (ModelProto): Model to be converted.
      """
      for tensor in _get_all_tensors(model):
          if uses_external_data(tensor):
              if not tensor.HasField("raw_data"):
                  raise ValueError("raw_data field doesn't exist.")
              del tensor.external_data[:]
              tensor.data_location = TensorProto.DEFAULT
  
imports: import os
  import re
  import sys
  import uuid
  from itertools import chain
  from typing import Callable, Iterable, Optional
  from onnx.onnx_pb import AttributeProto, GraphProto, ModelProto, TensorProto
label_desc: Use image node_id 5 for calling a global function with example usage: convert_model_from_external_data(model) without return types