code: def zpk2ss(z, p, k):
      """Zero-pole-gain representation to state-space representation
  
      Parameters
      ----------
      z, p : sequence
          Zeros and poles.
      k : float
          System gain.
  
      Returns
      -------
      A, B, C, D : ndarray
          State space representation of the system, in controller canonical
          form.
  
      See Also
      --------
      scipy.signal.zpk2ss
  
      """
      return tf2ss(*zpk2tf(z, p, k))
  
imports: import warnings
  import math
  from math import pi, prod
  import cupy
  from cupyx.scipy.special import binom
  import cupyx.scipy.special
  from cupyx.scipy.signal import _optimize
  from cupyx.scipy.signal._polyutils import roots, poly
  from cupyx.scipy.signal._lti_conversion import abcd_normalize
label_desc: Use image node_id 27 for calling a global function with example usage: zpk2ss(z, p, k) and returns: tf2ss