code: def convert_model_from_external_data(model):  # type: (ModelProto) -> None
      
      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
docs: call to set all tensors data as embedded data. save_model saves all the tensors data as embedded data after calling this function.
      @params
      model: ModelProto to be converted.