Repository: pytorch
Issue: Fix docstring errors in _state_dict_utils.py, _runtime_utils.py, _shard_utils.py
Labels: module: docs,triaged,medium,docathon-h2-2023

Please fix the following issues.
First, make sure to install the required tools:
```
pip3 install pydocstyle
```
```
pip3 install ruff
```
Then complete the followings steps:
 1. Run `pydocstyle` to see the number of errors in the file: 
 ```
pydocstyle path-to-file --count
```
 &nbsp; &nbsp; This command prints out the number of errors at the end of the output. Save this output to later add it to your PR description.
2. Next, run `ruff` which should help autofix many of these errors:
```
ruff --select RULECODE --fix path_to_file
```
&nbsp; &nbsp; `RULECODE` is the error code from the output in the issue, for example, **D200**. See the complete list of rules and autofixes [here](https://docs.astral.sh/ruff/rules/#pydocstyle-d).
3. You can run the above command with the `--unsafe-fixes` option. Double-check that the applied fixes are correct.
4. Fix the remaining issues. Fix **only** the errors listed in the issue. Skip the 'Missing docstrings' errors.
5. Run pydocstyle again:
```
pydocstyle path-to-file --count
```
This **number might not be 0** which is **OK**. Add the count of fixed errors to your PR description. 
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_fsdp_root_states_with_modules`, **Line**: 71, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_fsdp_root_states_with_modules`, **Line**: 71, **Description**: First line should end with a period (not '
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_fsdp_root_states_with_modules`, **Line**: 71, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_is_fsdp_root`, **Line**: 107, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_lazy_init`, **Line**: 165, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_lazy_init`, **Line**: 165, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_lazy_init`, **Line**: 165, **Description**: First line should be in imperative mood (perhaps 'Perform', not 'Performs')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_check_flat_params_on_expected_device`, **Line**: 195, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_check_flat_params_on_expected_device`, **Line**: 195, **Description**: First line should end with a period (not 'y')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_check_flat_params_on_expected_device`, **Line**: 195, **Description**: First line should be in imperative mood (perhaps 'Check', not 'Checks')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_share_state_and_init_handle_attrs`, **Line**: 240, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_share_state_and_init_handle_attrs`, **Line**: 240, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_init_streams`, **Line**: 317, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_init_streams`, **Line**: 317, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_init_streams`, **Line**: 317, **Description**: First line should be in imperative mood (perhaps 'Initialize', not 'Initializes')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_unshard`, **Line**: 343, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_unshard`, **Line**: 343, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_reshard`, **Line**: 376, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_reshard`, **Line**: 376, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_pre_forward`, **Line**: 428, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_pre_forward`, **Line**: 428, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_pre_forward`, **Line**: 428, **Description**: First line should be in imperative mood (perhaps 'Run', not 'Runs')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_post_forward`, **Line**: 495, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_post_forward`, **Line**: 495, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_post_forward`, **Line**: 495, **Description**: First line should be in imperative mood (perhaps 'Run', not 'Runs')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_root_pre_forward`, **Line**: 555, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_root_pre_forward`, **Line**: 555, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_root_pre_forward`, **Line**: 555, **Description**: First line should be in imperative mood (perhaps 'Run', not 'Runs')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_pre_backward_hook`, **Line**: 667, **Description**: First line should be in imperative mood (perhaps 'Prepare', not 'Prepares')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_should_free_in_backward`, **Line**: 908, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_should_free_in_backward`, **Line**: 908, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_should_free_in_backward`, **Line**: 908, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_cast_grad_to_param_dtype`, **Line**: 929, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_cast_grad_to_param_dtype`, **Line**: 929, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_post_backward_final_callback`, **Line**: 992, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_post_backward_final_callback`, **Line**: 992, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_catch_all_reshard`, **Line**: 1031, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_catch_all_reshard`, **Line**: 1031, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_finalize_params`, **Line**: 1069, **Description**: First line should be in imperative mood (perhaps 'Finalize', not 'Finalizes')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_prefetch_handles`, **Line**: 1102, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_prefetch_handles`, **Line**: 1102, **Description**: First line should end with a period (not 'y')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_handles_to_prefetch`, **Line**: 1136, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_handles_to_prefetch`, **Line**: 1136, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_handles_to_prefetch`, **Line**: 1136, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_training_state`, **Line**: 1187, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_forward_hooks`, **Line**: 1202, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_forward_hooks`, **Line**: 1202, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_forward_hooks`, **Line**: 1202, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_forward_hooks`, **Line**: 1232, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_forward_hooks`, **Line**: 1232, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_forward_hooks`, **Line**: 1232, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_root_pre_forward_hook`, **Line**: 1263, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_root_pre_forward_hook`, **Line**: 1263, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_root_pre_forward_hook`, **Line**: 1263, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_backward_hooks`, **Line**: 1289, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_backward_hooks`, **Line**: 1289, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_pre_backward_hooks`, **Line**: 1289, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_hooks`, **Line**: 1331, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_hooks`, **Line**: 1331, **Description**: First line should end with a period (not "'")
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_hooks`, **Line**: 1331, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_reshard_only_hooks`, **Line**: 1379, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_reshard_only_hooks`, **Line**: 1379, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_reshard_only_hooks`, **Line**: 1379, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_final_callback`, **Line**: 1410, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_final_callback`, **Line**: 1410, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_register_post_backward_final_callback`, **Line**: 1410, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_wait_for_computation_stream`, **Line**: 1433, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_clear_grads_if_needed`, **Line**: 1448, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_clear_grads_if_needed`, **Line**: 1448, **Description**: First line should end with a period (not 'U')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_clear_grads_if_needed`, **Line**: 1448, **Description**: First line should be in imperative mood (perhaps 'Clear', not 'Clears')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_buffers_and_dtypes_for_computation`, **Line**: 1463, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_buffers_and_dtypes_for_computation`, **Line**: 1463, **Description**: First line should end with a period (not 'a')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_buffers_and_dtypes_for_computation`, **Line**: 1463, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D200**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_orig_buffer_dtypes`, **Line**: 1499, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_get_orig_buffer_dtypes`, **Line**: 1499, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_cast_buffers_to_dtype_and_device`, **Line**: 1519, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_runtime_utils.py`, **Entity**: `_cast_buffers_to_dtype_and_device`, **Line**: 1519, **Description**: First line should end with a period (not 'm')
- **Error Code**: **D200**, **File**: `torch/distributed/fsdp/_shard_utils.py`, **Entity**: `_gather_state_dict`, **Line**: 57, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_shard_utils.py`, **Entity**: `_create_chunk_sharded_tensor`, **Line**: 96, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_shard_utils.py`, **Entity**: `_create_chunk_sharded_tensor`, **Line**: 96, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_shard_utils.py`, **Entity**: `_create_chunk_dtensor`, **Line**: 147, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_shard_utils.py`, **Entity**: `_create_chunk_dtensor`, **Line**: 147, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_enter_unshard_params_ctx`, **Line**: 108, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_enter_unshard_params_ctx`, **Line**: 108, **Description**: First line should end with a period (not 'w')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_exit_unshard_params_ctx`, **Line**: 130, **Description**: First line should be in imperative mood; try rephrasing (found 'A')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_pre_state_dict_hook`, **Line**: 139, **Description**: First line should be in imperative mood (perhaps 'Perform', not 'Performs')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_pre_state_dict_hook`, **Line**: 154, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_pre_state_dict_hook`, **Line**: 154, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_pre_state_dict_hook`, **Line**: 154, **Description**: First line should be in imperative mood (perhaps 'Perform', not 'Performs')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_post_state_dict_hook`, **Line**: 181, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_post_state_dict_hook`, **Line**: 181, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_common_unshard_post_state_dict_hook`, **Line**: 181, **Description**: First line should be in imperative mood; try rephrasing (found 'The')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_pre_state_dict_hook`, **Line**: 289, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_pre_state_dict_hook`, **Line**: 289, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_pre_state_dict_hook`, **Line**: 289, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_post_state_dict_hook`, **Line**: 312, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_post_state_dict_hook`, **Line**: 312, **Description**: First line should end with a period (not 'o')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_full_post_state_dict_hook`, **Line**: 312, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_state_dict_hook`, **Line**: 384, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_state_dict_hook`, **Line**: 384, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_state_dict_hook`, **Line**: 384, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D202**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_post_state_dict_hook`, **Line**: 407, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_post_state_dict_hook`, **Line**: 407, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_post_state_dict_hook`, **Line**: 407, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_post_state_dict_hook`, **Line**: 407, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_load_state_dict_hook`, **Line**: 462, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_load_state_dict_hook`, **Line**: 462, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_local_pre_load_state_dict_hook`, **Line**: 462, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_state_dict_hook`, **Line**: 510, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_state_dict_hook`, **Line**: 510, **Description**: First line should end with a period (not 'k')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_state_dict_hook`, **Line**: 510, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_post_state_dict_hook`, **Line**: 540, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_post_state_dict_hook`, **Line**: 540, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_post_state_dict_hook`, **Line**: 540, **Description**: First line should be in imperative mood; try rephrasing (found 'The')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_load_state_dict_hook`, **Line**: 585, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_load_state_dict_hook`, **Line**: 585, **Description**: First line should end with a period (not 'o')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_sharded_pre_load_state_dict_hook`, **Line**: 585, **Description**: First line should be in imperative mood; try rephrasing (found 'The')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_post_state_dict_hook`, **Line**: 674, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_post_state_dict_hook`, **Line**: 674, **Description**: First line should end with a period (not 's')
- **Error Code**: **D402**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_post_state_dict_hook`, **Line**: 674, **Description**: First line should not be the function's "signature"
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_pre_state_dict_hook`, **Line**: 731, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_pre_state_dict_hook`, **Line**: 731, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_pre_load_state_dict_hook`, **Line**: 768, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_pre_load_state_dict_hook`, **Line**: 768, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D200**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_register_all_state_dict_hooks`, **Line**: 827, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_register_all_state_dict_hooks`, **Line**: 827, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **Error Code**: **D401**, **File**: `torch/distributed/fsdp/_state_dict_utils.py`, **Entity**: `_register_state_dict_hooks_base`, **Line**: 852, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')

cc @carljparker