code: def _action_xyz(self, args, name, title, exclude, ignore):
      xyz_dir = self._get_installed_dir(args.prefix, name)
      exclude = [exclude] if isinstance(exclude, str) else exclude
  
      xyz = os.listdir(xyz_dir)
      xyz = [
          os.path.basename(a)
          for a in xyz
          if os.path.isdir(os.path.join(xyz_dir, a))
      ]
      xyz = [p for p in xyz if p not in exclude] if exclude else xyz
      xyz.sort()
  
      resource = {p: f"{xyz_dir}/{p}" for p in xyz}
  
      if not args.download:
          print(f"Available {title}s are:")
          print("----------------------------------------------------")
          for k, v in resource.items():
              print(f"  {k:<30}: {v}")
          print("")
      else:
          xyz_dir = os.path.join(xyz_dir, args.name)
          if args.name not in xyz or not os.path.exists(xyz_dir):
              print(f"{title} {args.name} => {xyz_dir} not exists")
              exit(-1)
  
          output_dir = os.path.realpath(
              os.path.join(args.output, args.name)
              if args.output
              else args.name
          )
          if os.path.exists(output_dir):
              print(f"Directory already exists: {output_dir}")
              exit(-1)
  
          if os.path.dirname(output_dir):
              os.makedirs(os.path.dirname(output_dir), exist_ok=True)
          shutil.copytree(xyz_dir, output_dir, ignore=ignore)
          print(f"{args.name} is copied at: {output_dir}")
  
imports: import argparse
  import json
  import logging
  import os
  import pathlib
  import platform
  import shutil
  import sys
  import uvicorn
  from monailabel import print_config
  from monailabel.config import settings
  from monailabel.utils.others.generic import init_log_config
label_desc: Use image node_id 12 for calling the Main obj's underlying member method code with example usage: obj._action_xyz(args, name, title, exclude, ignore) without return types