docstr: Reshape the model to fit the inputs.Be aware that not all models support reshaping,
  and models that do, may not support all input shapes. The model accuracy may also
  suffer if you reshape the model.
  :param shapes: input shape. For example, 'input1[1,3,224,224],input2[1,4]', '[1,3,224,224]'.
         This parameter affect model Parameter shape, can be dynamic. For dynamic dimesions
         use symbol `?`, `-1` or range `low.. up`.'
docstr_tok: ["Reshape","the","model","to","fit","the","inputs.Be","aware","that","not","all","models","support","reshaping",",","and","models","that","do",",","may","not","support","all","input","shapes",".","The","model","accuracy","may","also","suffer","if","you","reshape","the","model",".",":","param","shapes",":","input","shape",".","For","example",",","'input1","[","1,3,224,224","]",",","input2","[","1,4","]","'",",","'","[","1,3,224,224","]","'",".","This","parameter","affect","model","Parameter","shape",",","can","be","dynamic",".","For","dynamic","dimesions","use","symbol","`","?","`",",","`","-1","`","or","range","`","low","..","up","`",".","'"]
code: def reshape(self, shapes):
      """
      Reshape the model to fit the inputs.Be aware that not all models support reshaping,
      and models that do, may not support all input shapes. The model accuracy may also
      suffer if you reshape the model.
      :param shapes: input shape. For example, 'input1[1,3,224,224],input2[1,4]', '[1,3,224,224]'.
             This parameter affect model Parameter shape, can be dynamic. For dynamic dimesions
             use symbol `?`, `-1` or range `low.. up`.'
      """
      invalidInputError(
          isinstance(shapes, str),
          "Shapes only supports string inputs "
          "like 'input1[1,3,224,224],input2[1,4]', '[1,3,224,224]' but got "
          f"{shapes.__class__.__name__}.",
      )
  
      success = True
      error_msg = None
      shapes, reshape, origin_shapes = self._get_reshape_info(shapes)
      if not reshape:
          print(
              "Skip the reshape process since the input shapes are same as the current "
              "model shapes."
          )
          if self._infer_request:
              print("Skip compiling model.")
              return success, error_msg
      else:
          start_time = datetime.utcnow()
          print(
              "Reshaping model: {}".format(
                  ", ".join(
                      "'{}': {}".format(k, str(v))
                      for k, v in shapes.items()
                  )
              )
          )
          try:
              self.ie_network.reshape(shapes)
              duration_ms = f"{(datetime.utcnow() - start_time).total_seconds() * 1000:.2f}"
              print(f"Reshape model took {duration_ms} ms")
          except Exception as e:
              success = False
              error_msg = f"Failed to reshape this model. Error message: \n {str(e)}"
              if self._infer_request:
                  print(error_msg)
                  return success, error_msg
              else:
                  error_msg += "\nCompile the original model instead."
              print(error_msg)
  
      try:
          self.create_infer_request()
      except RuntimeError as e:
          success = False
          error_msg = f"Failed to compile the reshaped model. Error message: \n {str(e)}"
          invalidOperationError(
              self._infer_request is not None, error_msg
          )
          # Reshape to the original shapes
          print(error_msg)
          print("Revert the reshaping process.")
          self.ie_network.reshape(origin_shapes)
  
      return success, error_msg
  
imports: from pathlib import Path
  from tempfile import TemporaryDirectory
  from typing import List, Union
  from openvino.runtime import Core
  from bigdl.nano.utils.common import invalidInputError, _flatten, invalidOperationError
  from openvino.runtime import Model
  from openvino.runtime import AsyncInferQueue
  import numpy
  from datetime import datetime
  from .utils import save, OpenVINO_LESS_2022_3
label_desc: Use image node_id 12 for calling the OpenVINOModel obj's underlying member method code with example usage: obj.reshape(shapes) and returns: success,  error_msg, success,  error_msg, success,  error_msg