code: def generate_workspace_pools_args(parser):
      """Generates arguments for each Workspace Pools's options"""
      parser.add_argument(
          "--workspace-pools",
          help="""The name of the memory pool
                  Example usage: --workspace-pools=flash""",
      )
      parser.add_argument(
          "--workspace-pools-targets",
          help="""The name of the targets specified for the memory pool
                  Example usage: --workspace-pools-targets=flash:llvm""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-size-hint-bytes",
          nargs="?",
          help="""The expected size hint to be used by the allocator.
                  Example usage: --workspace-pools-size-hint-bytes=flash:8""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-clock-frequency-hz",
          nargs="?",
          help="""The clock frequency that the memory pool runs at in Hz.
                  Example usage: --workspace-pools-clock-frequency-hz=flash:70000000""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-read-bandwidth-bytes-per-cycle",
          nargs="?",
          help="""The read bandwidth of the memory pool in bytes/cycle.
                  Example usage: --workspace-pools-read-bandwidth-bytes-per-cycle=flash:4""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-write-bandwidth-bytes-per-cycle",
          nargs="?",
          help="""The write bandwidth of the memory pool in bytes/cycle.
                  Example usage: --workspace-pools-write-bandwidth-bytes-per-cycle=flash:8""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-read-latency-cycles",
          nargs="?",
          help="""The read latency of the memory pool in cycles.
                  Example usage: --workspace-pools-read-latency-cycles=flash:4""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-write-latency-cycles",
          nargs="?",
          help="""The write latency of the memory pool in cycles.
                  Example usage: --workspace-pools-write-latency-cycles=flash:8""",
          action="append",
      )
      parser.add_argument(
          "--workspace-pools-target-burst-bytes",
          help="""The burst length of the memory pool in bytes per target.
                  Example usage: --workspace-pools-target-burst-bytes=flash:accel:1""",
          action="append",
      )
  
file_path: tvm/python/tvm/driver/tvmc/workspace_pools.py
imports: import logging
  import re
  from tvm.driver.tvmc import TVMCException
  from tvm.target import Target
  from tvm.ir.memory_pools import PoolInfoProperties, WorkspaceMemoryPools, WorkspacePoolInfo
label_desc: Use image node_id 1 for calling a global function with example usage: generate_workspace_pools_args(parser) without return types