prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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.
      
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `syft/grid/__init__.py`
  Content:
  ```
  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 FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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"}], "after_files": [{"content": "from .network import Network\nimport sys\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    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", "path": "syft/grid/__init__.py"}]}