code: def main():
      script_path = os.path.dirname(os.path.abspath(__file__))
  
      try:
          docs = generate_pb_docs()
  
      except RuntimeError:
          print(
              "\n  [ERROR] Can't establish connection with the simulator"
          )
          print(
              "  .---------------------------------------------------."
          )
          print(
              "  |       Make sure the simulator is connected!       |"
          )
          print(
              "  '---------------------------------------------------'\n"
          )
          # We don't provide an error to prvent Travis checks failing
          sys.exit(0)
  
      with open(
          os.path.join(script_path, "../../Docs/bp_library.md"), "w"
      ) as md_file:
          md_file.write(docs)
      print("Done!")
  
imports: import glob
  import os
  import sys
  import carla
label_desc: Use image node_id 10 for calling a global function with example usage: main() without return types