code: def logn(n, x):
      """
      Take log base n of x.
  
      If `x` contains negative inputs, the answer is computed and returned in the
      complex domain.
  
      Parameters
      ----------
      n : array_like
         The integer base(s) in which the log is taken.
      x : array_like
         The value(s) whose log base `n` is (are) required.
  
      Returns
      -------
      out : ndarray or scalar
         The log base `n` of the `x` value(s). If `x` was a scalar, so is
         `out`, otherwise an array is returned.
  
      Examples
      --------
      >>> np.set_printoptions(precision=4)
  
      >>> np.lib.scimath.logn(2, [4, 8])
      array([ 2.,  3.])
      >>> np.lib.scimath.logn(2, [-4, -8, 8])
      array([ 2.+4.5324j,  3.+4.5324j,  3.+0.j    ])
  
      """
      x = _fix_real_lt_zero(x)
      n = _fix_real_lt_zero(n)
      return nx.log(x) / nx.log(n)
  
imports: from __future__ import division, absolute_import, print_function
  import numpy.core.numeric
  import numpy.core.numerictypes
  from numpy.core.numeric import asarray, any
  from numpy.core.overrides import array_function_dispatch
  from numpy.lib.type_check import isreal
label_desc: Use image node_id 10 for calling a global function with example usage: logn(n, x) and returns: unknown