code: def inspect(args, client):
      address = "%s:%d" % (get_ip(args.host), args.port)
  
      world = client.get_world()
      elapsed_time = world.get_snapshot().timestamp.elapsed_seconds
      elapsed_time = datetime.timedelta(seconds=int(elapsed_time))
  
      actors = world.get_actors()
      s = world.get_settings()
  
      weather = "Custom"
      current_weather = world.get_weather()
      for preset, name in find_weather_presets():
          if current_weather == preset:
              weather = name
  
      if s.fixed_delta_seconds is None:
          frame_rate = "variable"
      else:
          frame_rate = "%.2f ms (%d FPS)" % (
              1000.0 * s.fixed_delta_seconds,
              1.0 / s.fixed_delta_seconds,
          )
  
      print("-" * 34)
      print("address:% 26s" % address)
      print("version:% 26s\n" % client.get_server_version())
      print("map:        % 22s" % world.get_map().name)
      print("weather:    % 22s\n" % weather)
      print("time:       % 22s\n" % elapsed_time)
      print("frame rate: % 22s" % frame_rate)
      print(
          "rendering:  % 22s"
          % ("disabled" if s.no_rendering_mode else "enabled")
      )
      print(
          "sync mode:  % 22s\n"
          % ("disabled" if not s.synchronous_mode else "enabled")
      )
      print("actors:     % 22d" % len(actors))
      print("  * spectator:% 20d" % len(actors.filter("spectator")))
      print("  * static:   % 20d" % len(actors.filter("static.*")))
      print("  * traffic:  % 20d" % len(actors.filter("traffic.*")))
      print("  * vehicles: % 20d" % len(actors.filter("vehicle.*")))
      print("  * walkers:  % 20d" % len(actors.filter("walker.*")))
      print("-" * 34)
  
file_path: carla/PythonAPI/util/config.py
imports: import glob
  import os
  import sys
  import carla
  import argparse
  import datetime
  import re
  import socket
  import textwrap
label_desc: Use image node_id 5 for calling a global function with example usage: inspect(args, client) without return types