prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  `import tvm` now requires pytest
  With the merge of #6331, `import tvm` now requires pytest. I created this issue just to check whether this is something intentional or something that we want to fix.
  
  The chain from `import tvm` to `import pytest` happens due to the `from .import testing` on `python/tvm/__init__.py`. There is nothing actually done with that import.
  
  https://github.com/apache/incubator-tvm/blob/a4ebb16ed76bfea4ce4eed7be7ea73d4a01027e2/python/tvm/__init__.py#L53-L56
  
  Within `python/tvm/testing.py` then there is the `import pytest`. I was thinking that we might want to remove these lines from `__init__.py`, so that we don't load `tvm.testing` and will only import it when required. I'm happy to submit a PR removing those lines, in case there is an understanding that it makes sense.
  
  cc @tqchen 
  
  </issue>
  <code>
  [start of python/tvm/__init__.py]
  1 # Licensed to the Apache Software Foundation (ASF) under one
  2 # or more contributor license agreements.  See the NOTICE file
  3 # distributed with this work for additional information
  4 # regarding copyright ownership.  The ASF licenses this file
  5 # to you under the Apache License, Version 2.0 (the
  6 # "License"); you may not use this file except in compliance
  7 # with the License.  You may obtain a copy of the License at
  8 #
  9 #   http://www.apache.org/licenses/LICENSE-2.0
  10 #
  11 # Unless required by applicable law or agreed to in writing,
  12 # software distributed under the License is distributed on an
  13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14 # KIND, either express or implied.  See the License for the
  15 # specific language governing permissions and limitations
  16 # under the License.
  17 # pylint: disable=redefined-builtin, wildcard-import
  18 """TVM: Open Deep Learning Compiler Stack."""
  19 import multiprocessing
  20 import sys
  21 import traceback
  22 
  23 # top-level alias
  24 # tvm._ffi
  25 from ._ffi.base import TVMError, __version__
  26 from ._ffi.runtime_ctypes import DataTypeCode, DataType
  27 from ._ffi import register_object, register_func, register_extension, get_global_func
  28 
  29 # top-level alias
  30 # tvm.runtime
  31 from .runtime.object import Object
  32 from .runtime.ndarray import context, cpu, gpu, opencl, cl, vulkan, metal, mtl
  33 from .runtime.ndarray import vpi, rocm, ext_dev, micro_dev, hexagon
  34 from .runtime import ndarray as nd
  35 
  36 # tvm.error
  37 from . import error
  38 
  39 # tvm.ir
  40 from .ir import IRModule
  41 from .ir import transform
  42 from .ir import container
  43 from . import ir
  44 
  45 # tvm.tir
  46 from . import tir
  47 
  48 # tvm.target
  49 from . import target
  50 
  51 # tvm.te
  52 from . import te
  53 
  54 # tvm.testing
  55 from . import testing
  56 
  57 # tvm.driver
  58 from .driver import build, lower
  59 
  60 # tvm.parser
  61 from . import parser
  62 
  63 # tvm tir hybrid script
  64 from . import hybrid
  65 
  66 # others
  67 from . import arith
  68 
  69 # support infra
  70 from . import support
  71 
  72 # Contrib initializers
  73 from .contrib import rocm as _rocm, nvcc as _nvcc, sdaccel as _sdaccel
  74 
  75 
  76 def tvm_wrap_excepthook(exception_hook):
  77     """Wrap given excepthook with TVM additional work."""
  78 
  79     def wrapper(exctype, value, trbk):
  80         """Clean subprocesses when TVM is interrupted."""
  81         exception_hook(exctype, value, trbk)
  82         if hasattr(multiprocessing, 'active_children'):
  83             # pylint: disable=not-callable
  84             for p in multiprocessing.active_children():
  85                 p.terminate()
  86 
  87     return wrapper
  88 
  89 
  90 sys.excepthook = tvm_wrap_excepthook(sys.excepthook)
  91
  [end of python/tvm/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/python/tvm/__init__.py b/python/tvm/__init__.py
  --- a/python/tvm/__init__.py
  +++ b/python/tvm/__init__.py
  @@ -51,9 +51,6 @@
   # tvm.te
   from . import te
   
  -# tvm.testing
  -from . import testing
  -
   # tvm.driver
   from .driver import build, lower
  
verification_info: {"golden_diff": "diff --git a/python/tvm/__init__.py b/python/tvm/__init__.py\n--- a/python/tvm/__init__.py\n+++ b/python/tvm/__init__.py\n@@ -51,9 +51,6 @@\n # tvm.te\n from . import te\n \n-# tvm.testing\n-from . import testing\n-\n # tvm.driver\n from .driver import build, lower\n", "issue": "`import tvm` now requires pytest\nWith the merge of #6331, `import tvm` now requires pytest. I created this issue just to check whether this is something intentional or something that we want to fix.\r\n\r\nThe chain from `import tvm` to `import pytest` happens due to the `from .import testing` on `python/tvm/__init__.py`. There is nothing actually done with that import.\r\n\r\nhttps://github.com/apache/incubator-tvm/blob/a4ebb16ed76bfea4ce4eed7be7ea73d4a01027e2/python/tvm/__init__.py#L53-L56\r\n\r\nWithin `python/tvm/testing.py` then there is the `import pytest`. I was thinking that we might want to remove these lines from `__init__.py`, so that we don't load `tvm.testing` and will only import it when required. I'm happy to submit a PR removing those lines, in case there is an understanding that it makes sense.\r\n\r\ncc @tqchen \n", "before_files": [{"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n#   http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n# KIND, either express or implied.  See the License for the\n# specific language governing permissions and limitations\n# under the License.\n# pylint: disable=redefined-builtin, wildcard-import\n\"\"\"TVM: Open Deep Learning Compiler Stack.\"\"\"\nimport multiprocessing\nimport sys\nimport traceback\n\n# top-level alias\n# tvm._ffi\nfrom ._ffi.base import TVMError, __version__\nfrom ._ffi.runtime_ctypes import DataTypeCode, DataType\nfrom ._ffi import register_object, register_func, register_extension, get_global_func\n\n# top-level alias\n# tvm.runtime\nfrom .runtime.object import Object\nfrom .runtime.ndarray import context, cpu, gpu, opencl, cl, vulkan, metal, mtl\nfrom .runtime.ndarray import vpi, rocm, ext_dev, micro_dev, hexagon\nfrom .runtime import ndarray as nd\n\n# tvm.error\nfrom . import error\n\n# tvm.ir\nfrom .ir import IRModule\nfrom .ir import transform\nfrom .ir import container\nfrom . import ir\n\n# tvm.tir\nfrom . import tir\n\n# tvm.target\nfrom . import target\n\n# tvm.te\nfrom . import te\n\n# tvm.testing\nfrom . import testing\n\n# tvm.driver\nfrom .driver import build, lower\n\n# tvm.parser\nfrom . import parser\n\n# tvm tir hybrid script\nfrom . import hybrid\n\n# others\nfrom . import arith\n\n# support infra\nfrom . import support\n\n# Contrib initializers\nfrom .contrib import rocm as _rocm, nvcc as _nvcc, sdaccel as _sdaccel\n\n\ndef tvm_wrap_excepthook(exception_hook):\n    \"\"\"Wrap given excepthook with TVM additional work.\"\"\"\n\n    def wrapper(exctype, value, trbk):\n        \"\"\"Clean subprocesses when TVM is interrupted.\"\"\"\n        exception_hook(exctype, value, trbk)\n        if hasattr(multiprocessing, 'active_children'):\n            # pylint: disable=not-callable\n            for p in multiprocessing.active_children():\n                p.terminate()\n\n    return wrapper\n\n\nsys.excepthook = tvm_wrap_excepthook(sys.excepthook)\n", "path": "python/tvm/__init__.py"}]}