code: def least_sq(y):
      y = numpy.sort(y)
      n = len(y)
      x = numpy.arange(1, n + 1)
      x_mean = numpy.mean(x)
      y_mean = numpy.mean(y)
      numerator = 0
      denominator = 0
      for i in range(n):
          numerator += (x[i] - x_mean) * (y[i] - y_mean)
          denominator += (x[i] - x_mean) ** 2
  
      m = numerator / denominator
      b = y_mean - (m * x_mean)
  
      print(
          "Mean {:.2f}, Range: {:.2f}, Bias Coef: {:.2f}, Intercept: {:.2f}".format(
              numpy.mean(y), y[n - 1] - y[0], m, b
          )
      )
  
file_path: perspective/python/perspective/bench/tornado/bench.py
imports: import logging
  import argparse
  import numpy
  import multiprocessing
  import asyncio
  import perspective
  from functools import partial
label_desc: Use image node_id 1 for calling a global function with example usage: least_sq(y) without return types