prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  :wrench: Colored terminal output
  ## Task
  
  Modify the lightwood [logger class](https://github.com/mindsdb/lightwood/blob/stable/lightwood/helpers/log.py) so that its output is colored, depending on the log level. Color scheme is not set in stone, but should be something that makes sense, e.g.: red for `CRITICAL`, orange for `ERROR`, yellow for `WARNING`, green for `INFO`, uncolored for `DEBUG`.
  
  ## Steps :male_detective: :female_detective: 
  
  - Fork the Lightwood repository, checkout the `staging` branch and from it create a new one.
  - Implement the necessary changes. The package to achieve colored logging can be chosen as part of the PR, but we suggest using lightweight alternatives like [colored](https://pypi.org/project/colored/) or [termcolor](https://pypi.org/project/termcolor/).
  - Check the logs are using the new color scheme. For this, you can run any of the integration tests, like [`test_boston_housing`](https://github.com/mindsdb/lightwood/blob/stable/tests/integration/basic/test_boston_housing.py), and analyze the output.
  - Make the PR and address any comments that reviewers might make.
  
  ## Additional rewards :1st_place_medal: 
  
  Each documentation PR brings :one:  point for entry into the draw for a :computer:  Deep Learning Laptop powered by the NVIDIA RTX 3080 Max-Q GPU or other swag :shirt: :bear: .  For more info check out https://mindsdb.com/hacktoberfest/
  
  </issue>
  <code>
  [start of lightwood/helpers/log.py]
  1 import logging
  2 import os
  3 
  4 
  5 def initialize_log():
  6     pid = os.getpid()
  7     logging.basicConfig()
  8     log = logging.getLogger(f'lightwood-{pid}')
  9     log.setLevel(logging.DEBUG)
  10     return log
  11 
  12 
  13 log = initialize_log()
  14
  [end of lightwood/helpers/log.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/lightwood/helpers/log.py b/lightwood/helpers/log.py
  --- a/lightwood/helpers/log.py
  +++ b/lightwood/helpers/log.py
  @@ -1,10 +1,15 @@
   import logging
   import os
  +import colorlog
   
   
   def initialize_log():
       pid = os.getpid()
  -    logging.basicConfig()
  +
  +    handler = colorlog.StreamHandler()
  +    handler.setFormatter(colorlog.ColoredFormatter())
  +
  +    logging.basicConfig(handlers=[handler])
       log = logging.getLogger(f'lightwood-{pid}')
       log.setLevel(logging.DEBUG)
       return log
  
verification_info: {"golden_diff": "diff --git a/lightwood/helpers/log.py b/lightwood/helpers/log.py\n--- a/lightwood/helpers/log.py\n+++ b/lightwood/helpers/log.py\n@@ -1,10 +1,15 @@\n import logging\n import os\n+import colorlog\n \n \n def initialize_log():\n     pid = os.getpid()\n-    logging.basicConfig()\n+\n+    handler = colorlog.StreamHandler()\n+    handler.setFormatter(colorlog.ColoredFormatter())\n+\n+    logging.basicConfig(handlers=[handler])\n     log = logging.getLogger(f'lightwood-{pid}')\n     log.setLevel(logging.DEBUG)\n     return log\n", "issue": ":wrench: Colored terminal output\n## Task\r\n\r\nModify the lightwood [logger class](https://github.com/mindsdb/lightwood/blob/stable/lightwood/helpers/log.py) so that its output is colored, depending on the log level. Color scheme is not set in stone, but should be something that makes sense, e.g.: red for `CRITICAL`, orange for `ERROR`, yellow for `WARNING`, green for `INFO`, uncolored for `DEBUG`.\r\n\r\n## Steps :male_detective: :female_detective: \r\n\r\n- Fork the Lightwood repository, checkout the `staging` branch and from it create a new one.\r\n- Implement the necessary changes. The package to achieve colored logging can be chosen as part of the PR, but we suggest using lightweight alternatives like [colored](https://pypi.org/project/colored/) or [termcolor](https://pypi.org/project/termcolor/).\r\n- Check the logs are using the new color scheme. For this, you can run any of the integration tests, like [`test_boston_housing`](https://github.com/mindsdb/lightwood/blob/stable/tests/integration/basic/test_boston_housing.py), and analyze the output.\r\n- Make the PR and address any comments that reviewers might make.\r\n\r\n## Additional rewards :1st_place_medal: \r\n\r\nEach documentation PR brings :one:  point for entry into the draw for a :computer:  Deep Learning Laptop powered by the NVIDIA RTX 3080 Max-Q GPU or other swag :shirt: :bear: .  For more info check out https://mindsdb.com/hacktoberfest/\n", "before_files": [{"content": "import logging\nimport os\n\n\ndef initialize_log():\n    pid = os.getpid()\n    logging.basicConfig()\n    log = logging.getLogger(f'lightwood-{pid}')\n    log.setLevel(logging.DEBUG)\n    return log\n\n\nlog = initialize_log()\n", "path": "lightwood/helpers/log.py"}]}