def METHOD_NAME(tensor: base_tensor.Tensor,
                                    src_framework: str,
                                    dst_framework: str) -> base_tensor.Tensor:
  if not isinstance(tensor, base_tensor.Tensor):
    raise TypeError("'tensor' must be Tensor, but given {}".format(
        type(tensor)))
  if not tensor.is_complete_tensor():
    return tensor
  if src_framework == dst_framework:
    return tensor
  if tensor.ndim not in DataFormatMap._parameter_format_map[src_framework].keys():
    return tensor
  src_format = DataFormatMap.param_format(src_framework, tensor.ndim)
  dst_format = DataFormatMap.param_format(dst_framework, tensor.ndim)
  if src_format == dst_format:
    return tensor
  tensor.transpose(layout_transformer(src_format, dst_format))
  return tensor