class_docstr: Implementation of a custom transfer agent for the transfer type "multipart"
  for git-lfs. This lets users upload large files >5GB 🔥. Spec for LFS custom
  transfer agent is:
  https://github.com/git-lfs/git-lfs/blob/master/docs/custom-transfers.md
  
  This introduces two commands to the CLI:
  
  1. $ huggingface-cli lfs-enable-largefiles
  
  This should be executed once for each model repo that contains a model file
  >5GB. It's documented in the error message you get if you just try to git
  push a 5GB file without having enabled it before.
  
  2. $ huggingface-cli lfs-multipart-upload
  
  This command is called by lfs directly and is not meant to be called by the
  user.
class_docstr_tok: ["Implementation","of","a","custom","transfer","agent","for","the","transfer","type","``","multipart","''","for","git-lfs",".","This","lets","users","upload","large","files",">","5GB","\ud83d\udd25",".","Spec","for","LFS","custom","transfer","agent","is",":","https",":","\/\/github.com\/git-lfs\/git-lfs\/blob\/master\/docs\/custom-transfers.md","This","introduces","two","commands","to","the","CLI",":","1",".","$","huggingface-cli","lfs-enable-largefiles","This","should","be","executed","once","for","each","model","repo","that","contains","a","model","file",">","5GB",".","It","'s","documented","in","the","error","message","you","get","if","you","just","try","to","git","push","a","5GB","file","without","having","enabled","it","before",".","2",".","$","huggingface-cli","lfs-multipart-upload","This","command","is","called","by","lfs","directly","and","is","not","meant","to","be","called","by","the","user","."]
code: def register_subcommand(parser: _SubParsersAction):
      enable_parser = parser.add_parser(
          "lfs-enable-largefiles",
          help="Configure your repository to enable upload of files > 5GB.",
      )
      enable_parser.add_argument(
          "path",
          type=str,
          help="Local path to repository you want to configure.",
      )
      enable_parser.set_defaults(
          func=lambda args: LfsEnableCommand(args)
      )
  
      # Command will get called by git-lfs, do not call it directly.
      upload_parser = parser.add_parser(
          LFS_MULTIPART_UPLOAD_COMMAND, add_help=False
      )
      upload_parser.set_defaults(
          func=lambda args: LfsUploadCommand(args)
      )
  
file_path: hub-client/src/huggingface_hub/commands/lfs.py
imports: import json
  import os
  import subprocess
  import sys
  from argparse import _SubParsersAction
  from typing import Dict, List, Optional
  from huggingface_hub.commands import BaseHuggingfaceCLICommand
  from huggingface_hub.lfs import LFS_MULTIPART_UPLOAD_COMMAND, SliceFileObj
  from ..utils import get_session, hf_raise_for_status, logging
label_desc: Use image node_id 1 for calling the LfsCommands obj's underlying member method code with example usage: obj.register_subcommand(parser) without return types