code: def legline(off, scl):
      """
      Legendre series whose graph is a straight line.
  
  
  
      Parameters
      ----------
      off, scl : scalars
          The specified line is given by ``off + scl*x``.
  
      Returns
      -------
      y : ndarray
          This module's representation of the Legendre series for
          ``off + scl*x``.
  
      See Also
      --------
      polyline, chebline
  
      Examples
      --------
      >>> import numpy.polynomial.legendre as L
      >>> L.legline(3,2)
      array([3, 2])
      >>> L.legval(-3, L.legline(3,2)) # should be -3
      -3.0
  
      """
      if scl != 0:
          return np.array([off, scl])
      else:
          return np.array([off])
  
imports: from __future__ import division, absolute_import, print_function
  import warnings
  import numpy
  import numpy.linalg
  from numpy.core.multiarray import normalize_axis_index
  from .None import polyutils
  from ._polybase import ABCPolyBase
label_desc: Use image node_id 3 for calling a global function with example usage: legline(off, scl) and returns: np, np