code: def write_msg(msg: Dict):
      """Write out the message in Line delimited JSON."""
      msg_str = json.dumps(msg) + "\n"
      sys.stdout.write(msg_str)
      sys.stdout.flush()
  
file_path: huggingface_hub/src/huggingface_hub/commands/lfs.py
imports: import json
  import os
  import subprocess
  import sys
  from argparse import _SubParsersAction
  from typing import Dict, List, Optional
  from huggingface_hub.commands import BaseHuggingfaceCLICommand
  from huggingface_hub.lfs import LFS_MULTIPART_UPLOAD_COMMAND, SliceFileObj
  from ..utils import get_session, hf_raise_for_status, logging
label_desc: Use image node_id 1 for calling a global function with example usage: write_msg(msg) without return types