code: def _reshape_fortran_paddle(x, shape):
      if len(x.shape) > 0:
          x = paddle_backend.permute_dims(
              x, list(reversed(range(x.ndim)))
          )
      return paddle_backend.permute_dims(
          paddle.reshape(x, shape[::-1]), list(range(len(shape)))[::-1]
      )
  
imports: from numbers import Number
  from typing import Union, Optional, Tuple, List, Sequence, Iterable
  import math
  import paddle
  import ivy
  import ivy.functional.backends.paddle
  from ivy.func_wrapper import with_unsupported_device_and_dtypes, with_unsupported_dtypes, with_supported_dtypes
  from .None import backend_version
  from ...ivy.manipulation import _calculate_out_shape
label_desc: Use image node_id 5 for calling a global function with example usage: _reshape_fortran_paddle(x, shape) and returns: paddle_backend