code: def inplace_swap_row(X, m, n):
      """
      Swaps two rows of a CSC/CSR matrix in-place.
  
      Parameters
      ----------
      X : CSR or CSC sparse matrix, shape=(n_samples, n_features)
          Matrix whose two rows are to be swapped.
  
      m: int
          Index of the row of X to be swapped.
  
      n: int
          Index of the row of X to be swapped.
      """
      if isinstance(X, sp.csc_matrix):
          return inplace_swap_row_csc(X, m, n)
      elif isinstance(X, sp.csr_matrix):
          return inplace_swap_row_csr(X, m, n)
      else:
          _raise_typeerror(X)
  
imports: import scipy.sparse
  import numpy
  from .fixes import sparse_min_max, bincount
  from .sparsefuncs_fast import csr_mean_variance_axis0, csc_mean_variance_axis0, incr_mean_variance_axis0
label_desc: Use image node_id 11 for calling a global function with example usage: inplace_swap_row(X, m, n) and returns: inplace_swap_row_csc, inplace_swap_row_csr