code: def _reshape_real_imag(state, dim):
      state = qml.math.reshape(state, (dim,))
      return qml.math.real(state), qml.math.imag(state)
  
file_path: pennylane/pennylane/gradients/adjoint_metric_tensor.py
imports: from typing import Sequence, Callable
  from itertools import chain
  from functools import partial
  import numpy
  import pennylane
  from pennylane.gradients.metric_tensor import _contract_metric_tensor_with_cjac
  from pennylane.transforms import transform
label_desc: Use image node_id 1 for calling a global function with example usage: _reshape_real_imag(state, dim) and returns: qml,  qml