code: def residual(params, x, data):
      """Define objective function for the minimization."""
      model = 1.0 / (params["a"] * x) + params["b"]
      return data - model
  
imports: import copy
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  from scipy.stats import f
  import lmfit
label_desc: Use image node_id 3 for calling a global function with example usage: residual(params, x, data) and returns: unknown