code: def aten_reshape_alias_formula(
      fn: Any,
      input: ShapeTensor,
      size: list[int],
      stride: list[int] | None = None,
  ) -> MutableShape:
      input_shape = ensure_shape(input)
      if input_shape.is_mutable():
          raise RuntimeError(
              f"Cannot infer the shape of {fn} because the input shape is not determined: {input_shape}, "
              f"but output shape is fixed: {size}. "
              "This happens when functions like `torch.flatten` is used on a mutable-shape input. "
              "Try to use `.view()` instead."
          )
  
      return MutableShape(*size)
  
imports: from __future__ import annotations
  import logging
  import warnings
  from typing import Callable, Type, Tuple, Any, cast
  import torch
  from torch import nn
  import nni.nas.nn.pytorch
  from nni.mutable import MutableExpression
  from .shape import Formula, ShapeTensor, MutableShape, extract_shape_info, switch_case_shape_info, shape_inference
  from ._attrs import _getattr, tuple_2_t
label_desc: Use image node_id 17 for calling a global function with example usage: aten_reshape_alias_formula(fn, input, size, stride) and returns: MutableShape