docstr: Verify fix for gh-1892
docstr_tok: ["Verify","fix","for","gh-1892"]
code: def test_output_file_overwrite(self):
      """
      Verify fix for gh-1892
      """
  
      def func(b, x):
          return b[0] + b[1] * x
  
      p = Model(func)
      data = Data(np.arange(10), 12 * np.arange(10))
      tmp_dir = tempfile.mkdtemp()
      error_file_path = os.path.join(tmp_dir, "error.dat")
      report_file_path = os.path.join(tmp_dir, "report.dat")
      try:
          ODR(
              data,
              p,
              beta0=[0.1, 13],
              errfile=error_file_path,
              rptfile=report_file_path,
          ).run()
          ODR(
              data,
              p,
              beta0=[0.1, 13],
              errfile=error_file_path,
              rptfile=report_file_path,
              overwrite=True,
          ).run()
      finally:
          # remove output files for clean up
          shutil.rmtree(tmp_dir)
  
imports: import tempfile
  import shutil
  import os
  import numpy
  from numpy import pi
  from numpy.testing import assert_array_almost_equal, assert_equal, assert_warns
  import pytest
  from pytest import raises
  from scipy.odr import Data, Model, ODR, RealData, OdrStop, OdrWarning, multilinear, exponential, unilinear, quadratic, polynomial
label_desc: Use image node_id 25 for calling the TestODR obj's underlying member method code with example usage: obj.test_output_file_overwrite() and returns: unknown