code: def register(subparser: _SubParsersAction[ArgumentParser]) -> None:
      sub = subparser.add_parser("files.create")
  
      sub.add_argument(
          "-f",
          "--file",
          required=True,
          help="File to upload",
      )
      sub.add_argument(
          "-p",
          "--purpose",
          help="Why are you uploading this file? (see https://platform.openai.com/docs/api-reference/ for purposes)",
          required=True,
      )
      sub.set_defaults(
          func=CLIFile.create, args_model=CLIFileCreateArgs
      )
  
      sub = subparser.add_parser("files.retrieve")
      sub.add_argument("-i", "--id", required=True, help="The files ID")
      sub.set_defaults(func=CLIFile.get, args_model=CLIFileCreateArgs)
  
      sub = subparser.add_parser("files.delete")
      sub.add_argument("-i", "--id", required=True, help="The files ID")
      sub.set_defaults(
          func=CLIFile.delete, args_model=CLIFileCreateArgs
      )
  
      sub = subparser.add_parser("files.list")
      sub.set_defaults(func=CLIFile.list)
  
file_path: openai-python/src/openai/cli/_api/files.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  from argparse import ArgumentParser
  from .._utils import get_client, print_model
  from .._models import BaseModel
  from .._progress import BufferReader
label_desc: Use image node_id 1 for calling a global function with example usage: register(subparser) without return types