prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  sy.grid.register() should print useful information
  **Is your feature request related to a problem? Please describe.**
  When registering a node on OpenGrid, we want to convey some information to the user using sys.stdout.write()
  
  A few things we thought to add.
  
  - Information: connecting to opengrid...etc.
      - Information: Can I connect to the main grid node... graceful error message if you can't.
  - Disclaimer: OpenGrid is an experimental feature currently in alpha. Do not use this to protect real-world data.
  - Where to get Help:
      - Join our slack (slack.openmined.org) and ask for help in the #lib_syft channel.
      - File a Github Issue: https://github.com/OpenMined/PySyft and add the string "#opengrid" in the issue title.
      
  
  
  </issue>
  <code>
  [start of syft/grid/__init__.py]
  1 from .network import Network
  2 import uuid
  3 
  4 DEFAULT_NETWORK_URL = "ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com"
  5 
  6 
  7 def register(**kwargs):
  8     """ Add this process as a new peer registering it in the grid network.
  9         
  10         Returns:
  11             peer: Peer Network instance.
  12     """
  13     if not kwargs:
  14         args = args = {"max_size": None, "timeout": 444, "url": DEFAULT_NETWORK_URL}
  15     else:
  16         args = kwargs
  17 
  18     peer_id = str(uuid.uuid4())
  19     peer = Network(peer_id, **args)
  20     peer.start()
  21 
  22     return peer
  23
  [end of syft/grid/__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/syft/grid/__init__.py b/syft/grid/__init__.py
  --- a/syft/grid/__init__.py
  +++ b/syft/grid/__init__.py
  @@ -1,4 +1,5 @@
   from .network import Network
  +import sys
   import uuid
   
   DEFAULT_NETWORK_URL = "ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com"
  @@ -16,7 +17,32 @@
           args = kwargs
   
       peer_id = str(uuid.uuid4())
  +    sys.stdout.write(
  +        "Connecting to OpenGrid (" + "\033[94m" + DEFAULT_NETWORK_URL + "\033[0m" + ") ... "
  +    )
       peer = Network(peer_id, **args)
  +
  +    sys.stdout.write("\033[92m" + "OK" + "\033[0m" + "\n")
  +    sys.stdout.write("Peer ID: " + peer_id + "\n")
  +
  +    sys.stdout.write(
  +        "\033[93m" + "DISCLAIMER" + "\033[0m"
  +        ":"
  +        + "\033[1m"
  +        + " OpenGrid is an experimental feature currently in alpha. Do not use this to protect real-world data.\n"
  +        + "\033[0m"
  +    )
  +
  +    sys.stdout.write("Where to get help: \n")
  +    sys.stdout.write(
  +        " - Join our slack  (https://slack.openmined.org) and ask for help in the #lib_syft channel.\n"
  +    )
  +    sys.stdout.write(
  +        " - File a Github Issue: https://github.com/OpenMined/PySyft and add the string '#opengrid' in the issue title.\n"
  +    )
  +    sys.stdout.write(
  +        " - Want to join in our development team? Apply here: https://forms.gle/wcH1vxzvPyDSbSVW6\n"
  +    )
       peer.start()
   
       return peer
  
verification_info: {"golden_diff": "diff --git a/syft/grid/__init__.py b/syft/grid/__init__.py\n--- a/syft/grid/__init__.py\n+++ b/syft/grid/__init__.py\n@@ -1,4 +1,5 @@\n from .network import Network\n+import sys\n import uuid\n \n DEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n@@ -16,7 +17,32 @@\n         args = kwargs\n \n     peer_id = str(uuid.uuid4())\n+    sys.stdout.write(\n+        \"Connecting to OpenGrid (\" + \"\\033[94m\" + DEFAULT_NETWORK_URL + \"\\033[0m\" + \") ... \"\n+    )\n     peer = Network(peer_id, **args)\n+\n+    sys.stdout.write(\"\\033[92m\" + \"OK\" + \"\\033[0m\" + \"\\n\")\n+    sys.stdout.write(\"Peer ID: \" + peer_id + \"\\n\")\n+\n+    sys.stdout.write(\n+        \"\\033[93m\" + \"DISCLAIMER\" + \"\\033[0m\"\n+        \":\"\n+        + \"\\033[1m\"\n+        + \" OpenGrid is an experimental feature currently in alpha. Do not use this to protect real-world data.\\n\"\n+        + \"\\033[0m\"\n+    )\n+\n+    sys.stdout.write(\"Where to get help: \\n\")\n+    sys.stdout.write(\n+        \" - Join our slack  (https://slack.openmined.org) and ask for help in the #lib_syft channel.\\n\"\n+    )\n+    sys.stdout.write(\n+        \" - File a Github Issue: https://github.com/OpenMined/PySyft and add the string '#opengrid' in the issue title.\\n\"\n+    )\n+    sys.stdout.write(\n+        \" - Want to join in our development team? Apply here: https://forms.gle/wcH1vxzvPyDSbSVW6\\n\"\n+    )\n     peer.start()\n \n     return peer\n", "issue": "sy.grid.register() should print useful information\n**Is your feature request related to a problem? Please describe.**\r\nWhen registering a node on OpenGrid, we want to convey some information to the user using sys.stdout.write()\r\n\r\nA few things we thought to add.\r\n\r\n- Information: connecting to opengrid...etc.\r\n    - Information: Can I connect to the main grid node... graceful error message if you can't.\r\n- Disclaimer: OpenGrid is an experimental feature currently in alpha. Do not use this to protect real-world data.\r\n- Where to get Help:\r\n    - Join our slack (slack.openmined.org) and ask for help in the #lib_syft channel.\r\n    - File a Github Issue: https://github.com/OpenMined/PySyft and add the string \"#opengrid\" in the issue title.\r\n    \r\n\n", "before_files": [{"content": "from .network import Network\nimport uuid\n\nDEFAULT_NETWORK_URL = \"ws://ec2-13-59-45-128.us-east-2.compute.amazonaws.com\"\n\n\ndef register(**kwargs):\n    \"\"\" Add this process as a new peer registering it in the grid network.\n        \n        Returns:\n            peer: Peer Network instance.\n    \"\"\"\n    if not kwargs:\n        args = args = {\"max_size\": None, \"timeout\": 444, \"url\": DEFAULT_NETWORK_URL}\n    else:\n        args = kwargs\n\n    peer_id = str(uuid.uuid4())\n    peer = Network(peer_id, **args)\n    peer.start()\n\n    return peer\n", "path": "syft/grid/__init__.py"}]}