code: def get_slope_inter(writer):
      """Return slope, intercept from array writer object
  
      Parameters
      ----------
      writer : ArrayWriter instance
  
      Returns
      -------
      slope : scalar
          slope in `writer` or 1.0 if not present
      inter : scalar
          intercept in `writer` or 0.0 if not present
  
      Examples
      --------
      >>> arr = np.arange(10)
      >>> get_slope_inter(ArrayWriter(arr))
      (1.0, 0.0)
      >>> get_slope_inter(SlopeArrayWriter(arr))
      (1.0, 0.0)
      >>> get_slope_inter(SlopeInterArrayWriter(arr))
      (1.0, 0.0)
      """
      try:
          slope = writer.slope
      except AttributeError:
          slope = 1.0
      try:
          inter = writer.inter
      except AttributeError:
          inter = 0.0
      return slope, inter
  
imports: import numpy
  from .casting import best_float, floor_exact, int_abs, shared_range, type_info
  from .volumeutils import array_to_file, finite_range
label_desc: Use image node_id 1 for calling a global function with example usage: get_slope_inter(writer) and returns: slope,  inter