docstr: Download model from cloud
  ref: http://5.9.10.113/67706477/load-pytorch-model-from-s3-bucket
  Args:
      path:
      **kwargs:
  
  Returns:
docstr_tok: ["Download","model","from","cloud","ref",":","http",":","\/\/5.9.10.113\/67706477\/load-pytorch-model-from-s3-bucket","Args",":","path",":","*","*","kwargs",":","Returns",":"]
code: def download_model(path: str, **kwargs) -> io.BytesIO:
      """
      Download model from cloud
      ref: http://5.9.10.113/67706477/load-pytorch-model-from-s3-bucket
      Args:
          path:
          **kwargs:
  
      Returns:
  
      """
  
      with smart_open.open(path, mode="rb", **kwargs) as fr:
          data = io.BytesIO(fr.read())
      return data
  
file_path: chitra/chitra/serve/cloud/base.py
imports: import abc
  import io
  from abc import ABC
  from typing import Callable, Optional
  import smart_open
  from chitra.serve.base import ModelServer
label_desc: Use image node_id 2 for calling the CloudServer obj's underlying member method code with example usage: obj.download_model(path) and returns: data