Repository: pytorch
Issue: Fix docstring errors in shard.py, op_registry_utils.py, local_timer.py, file_based_local_timer.py, api.py, distributed.py, cycling_iterator.py, __init__.py, _utils.py, reshard.py, common_op_utils.py, elastic_distributed_sampler.py, utils.py, log_level.py, store.py, logging.py, sharder.py, metadata.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/elastic/timer/__init__.py`, **Entity**: ``, **Line**: 7, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/__init__.py`, **Entity**: ``, **Line**: 7, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerRequest`, **Line**: 19, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerRequest`, **Line**: 19, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerClient`, **Line**: 48, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerClient`, **Line**: 48, **Description**: First line should end with a period (not 'g')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `acquire`, **Line**: 55, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `acquire`, **Line**: 55, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `release`, **Line**: 64, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `release`, **Line**: 64, **Description**: First line should end with a period (not 's')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `RequestQueue`, **Line**: 73, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `RequestQueue`, **Line**: 73, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `size`, **Line**: 79, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `size`, **Line**: 79, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get`, **Line**: 100, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get`, **Line**: 100, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get`, **Line**: 100, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerServer`, **Line**: 108, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `TimerServer`, **Line**: 108, **Description**: First line should end with a period (not 'm')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `__init__`, **Line**: 117, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `__init__`, **Line**: 117, **Description**: First line should end with a period (not '`')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `register_timers`, **Line**: 132, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `register_timers`, **Line**: 132, **Description**: First line should be in imperative mood (perhaps 'Process', not 'Processes')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `clear_timers`, **Line**: 142, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `clear_timers`, **Line**: 142, **Description**: First line should be in imperative mood (perhaps 'Clear', not 'Clears')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get_expired_timers`, **Line**: 149, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get_expired_timers`, **Line**: 149, **Description**: First line should end with a period (not 'r')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `get_expired_timers`, **Line**: 149, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `_reap_worker`, **Line**: 158, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `_reap_worker`, **Line**: 158, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `_reap_worker_no_throw`, **Line**: 166, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `_reap_worker_no_throw`, **Line**: 166, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `_reap_worker_no_throw`, **Line**: 166, **Description**: First line should be in imperative mood (perhaps 'Wrap', not 'Wraps')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `configure`, **Line**: 239, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `configure`, **Line**: 239, **Description**: First line should be in imperative mood (perhaps 'Configure', not 'Configures')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `expires`, **Line**: 251, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/api.py`, **Entity**: `expires`, **Line**: 251, **Description**: First line should end with a period (not ',')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerRequest`, **Line**: 25, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerRequest`, **Line**: 25, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D204**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerClient`, **Line**: 67, **Description**: 1 blank line required after class docstring (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerClient`, **Line**: 67, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerClient`, **Line**: 67, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D412**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerClient`, **Line**: 67, **Description**: No blank lines allowed between a section header and its content ('Args')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerServer`, **Line**: 137, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerServer`, **Line**: 137, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D412**, **File**: `torch/distributed/elastic/timer/file_based_local_timer.py`, **Entity**: `FileTimerServer`, **Line**: 137, **Description**: No blank lines allowed between a section header and its content ('Args')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `LocalTimerClient`, **Line**: 21, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `LocalTimerClient`, **Line**: 21, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `MultiprocessingRequestQueue`, **Line**: 45, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `MultiprocessingRequestQueue`, **Line**: 45, **Description**: First line should end with a period (not '`')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `LocalTimerServer`, **Line**: 76, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/timer/local_timer.py`, **Entity**: `LocalTimerServer`, **Line**: 76, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/api.py`, **Entity**: `get_env_variable_or_raise`, **Line**: 16, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/api.py`, **Entity**: `get_env_variable_or_raise`, **Line**: 16, **Description**: First line should end with a period (not '`')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/utils/api.py`, **Entity**: `get_env_variable_or_raise`, **Line**: 16, **Description**: First line should be in imperative mood (perhaps 'Try', not 'Tries')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/utils/api.py`, **Entity**: `macros`, **Line**: 47, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/api.py`, **Entity**: `macros`, **Line**: 47, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D200**, **File**: `torch/distributed/elastic/utils/log_level.py`, **Entity**: `get_log_level`, **Line**: 11, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D202**, **File**: `torch/distributed/elastic/utils/logging.py`, **Entity**: `get_logger`, **Line**: 19, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/logging.py`, **Entity**: `get_logger`, **Line**: 19, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/logging.py`, **Entity**: `get_logger`, **Line**: 19, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/utils/logging.py`, **Entity**: `_derive_module_name`, **Line**: 42, **Description**: First line should be in imperative mood (perhaps 'Derive', not 'Derives')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/store.py`, **Entity**: `get_all`, **Line**: 14, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/store.py`, **Entity**: `get_all`, **Line**: 14, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/store.py`, **Entity**: `synchronize`, **Line**: 55, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/utils/store.py`, **Entity**: `synchronize`, **Line**: 55, **Description**: First line should be in imperative mood (perhaps 'Synchronize', not 'Synchronizes')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/utils/store.py`, **Entity**: `barrier`, **Line**: 71, **Description**: First line should be in imperative mood; try rephrasing (found 'A')
- **Error Code**: **D202**, **File**: `torch/distributed/elastic/utils/distributed.py`, **Entity**: `get_socket_with_port`, **Line**: 115, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/distributed.py`, **Entity**: `get_socket_with_port`, **Line**: 115, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/distributed.py`, **Entity**: `get_socket_with_port`, **Line**: 115, **Description**: First line should end with a period (not 'y')
- **Error Code**: **D401**, **File**: `torch/distributed/elastic/utils/distributed.py`, **Entity**: `get_socket_with_port`, **Line**: 115, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/data/cycling_iterator.py`, **Entity**: `CyclingIterator`, **Line**: 11, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/data/cycling_iterator.py`, **Entity**: `CyclingIterator`, **Line**: 11, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/elastic/utils/data/elastic_distributed_sampler.py`, **Entity**: `ElasticDistributedSampler`, **Line**: 16, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/elastic/utils/data/elastic_distributed_sampler.py`, **Entity**: `ElasticDistributedSampler`, **Line**: 16, **Description**: First line should end with a period (not 'f')
- **Error Code**: **D205**, **File**: `torch/distributed/launcher/api.py`, **Entity**: `_get_entrypoint_name`, **Line**: 140, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/launcher/api.py`, **Entity**: `_get_entrypoint_name`, **Line**: 140, **Description**: First line should end with a period (not '
- **Error Code**: **D204**, **File**: `torch/distributed/_shard/sharder.py`, **Entity**: `Sharder`, **Line**: 5, **Description**: 1 blank line required after class docstring (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharder.py`, **Entity**: `Sharder`, **Line**: 5, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharder.py`, **Entity**: `Sharder`, **Line**: 5, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharder.py`, **Entity**: `shard`, **Line**: 16, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharder.py`, **Entity**: `shard`, **Line**: 16, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/_utils.py`, **Entity**: `narrow_tensor_by_index`, **Line**: 8, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/_utils.py`, **Entity**: `narrow_tensor`, **Line**: 25, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/_utils.py`, **Entity**: `narrow_tensor`, **Line**: 25, **Description**: First line should end with a period (not 'a')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_shard_tensor`, **Line**: 21, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_shard_tensor`, **Line**: 21, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `shard_parameter`, **Line**: 78, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `shard_parameter`, **Line**: 78, **Description**: First line should end with a period (not 't')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `load_with_process_group`, **Line**: 127, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_get_current_process_group`, **Line**: 142, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_get_current_process_group`, **Line**: 142, **Description**: First line should be in imperative mood (perhaps 'Retrieve', not 'Retrieves')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_reshard_output`, **Line**: 155, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_reshard_output`, **Line**: 155, **Description**: First line should end with a period (not 'g')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_reshard_output`, **Line**: 155, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `_collect_local_shard`, **Line**: 175, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `shard_module`, **Line**: 212, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/api.py`, **Entity**: `shard_module`, **Line**: 212, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/common_op_utils.py`, **Entity**: `_basic_validation`, **Line**: 6, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/common_op_utils.py`, **Entity**: `_basic_validation`, **Line**: 6, **Description**: First line should be in imperative mood; try rephrasing (found 'Common')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/common_op_utils.py`, **Entity**: `tensor_default_op`, **Line**: 50, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/common_op_utils.py`, **Entity**: `tensor_default_op`, **Line**: 50, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/common_op_utils.py`, **Entity**: `tensor_default_op`, **Line**: 50, **Description**: First line should be in imperative mood (perhaps 'Handle', not 'Handles')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/metadata.py`, **Entity**: `ShardMetadata`, **Line**: 9, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/metadata.py`, **Entity**: `ShardMetadata`, **Line**: 9, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_register_op`, **Line**: 11, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_register_op`, **Line**: 11, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_register_op`, **Line**: 11, **Description**: First line should be in imperative mood (perhaps 'Perform', not 'Performs')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_decorator_func`, **Line**: 24, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_decorator_func`, **Line**: 24, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/op_registry_utils.py`, **Entity**: `_decorator_func`, **Line**: 24, **Description**: First line should be in imperative mood (perhaps 'Decorate', not 'Decorator')
- **Error Code**: **D201**, **File**: `torch/distributed/_shard/sharded_optim/__init__.py`, **Entity**: `named_params_with_sharded_tensor`, **Line**: 16, **Description**: No blank lines allowed before function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_optim/__init__.py`, **Entity**: `named_params_with_sharded_tensor`, **Line**: 16, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_optim/__init__.py`, **Entity**: `named_params_with_sharded_tensor`, **Line**: 16, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_optim/__init__.py`, **Entity**: `named_params_with_sharded_tensor`, **Line**: 16, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `__init__`, **Line**: 16, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `__init__`, **Line**: 16, **Description**: First line should end with a period (not 'f')
- **Error Code**: **D403**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `__init__`, **Line**: 16, **Description**: First word of the first line should be properly capitalized ('Shardedoptimizer', not 'ShardedOptimizer')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `zero_grad`, **Line**: 44, **Description**: First line should be in imperative mood (perhaps 'Reset', not 'Resets')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `step`, **Line**: 61, **Description**: First line should be in imperative mood (perhaps 'Perform', not 'Performs')
- **Error Code**: **D402**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `step`, **Line**: 61, **Description**: First line should not be the function's "signature"
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `state_dict`, **Line**: 74, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `state_dict`, **Line**: 74, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `state_dict`, **Line**: 74, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returned')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `load_state_dict`, **Line**: 84, **Description**: First line should be in imperative mood (perhaps 'Load', not 'Loads')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `add_param_group`, **Line**: 94, **Description**: One-line docstring should fit on one line with quotes (found 2)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_optim/api.py`, **Entity**: `add_param_group`, **Line**: 94, **Description**: First line should end with a period (not 'p')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/sharded_tensor/utils.py`, **Entity**: `_flatten_tensor_size`, **Line**: 66, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/utils.py`, **Entity**: `_flatten_tensor_size`, **Line**: 66, **Description**: First line should be in imperative mood (perhaps 'Check', not 'Checks')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `empty`, **Line**: 31, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `empty`, **Line**: 31, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `ones`, **Line**: 83, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `ones`, **Line**: 83, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `zeros`, **Line**: 134, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `zeros`, **Line**: 134, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `full`, **Line**: 187, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `full`, **Line**: 187, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `full`, **Line**: 187, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `rand`, **Line**: 238, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `rand`, **Line**: 238, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `rand`, **Line**: 238, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `randn`, **Line**: 291, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `randn`, **Line**: 291, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `randn`, **Line**: 291, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `init_from_local_shards`, **Line**: 341, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `init_from_local_shards`, **Line**: 341, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `state_dict_hook`, **Line**: 395, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `state_dict_hook`, **Line**: 395, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `state_dict_hook`, **Line**: 395, **Description**: First line should be in imperative mood; try rephrasing (found 'Hook')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `pre_load_state_dict_hook`, **Line**: 408, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `custom_sharded_op_impl`, **Line**: 420, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `custom_sharded_op_impl`, **Line**: 420, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `custom_sharded_op_impl`, **Line**: 420, **Description**: First line should be in imperative mood (perhaps 'Provide', not 'Provides')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `_sharded_op_impl`, **Line**: 457, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/__init__.py`, **Entity**: `_sharded_op_impl`, **Line**: 457, **Description**: First line should be in imperative mood (perhaps 'Decorate', not 'Decorator')
- **Error Code**: **D210**, **File**: `torch/distributed/_shard/sharded_tensor/metadata.py`, **Entity**: `TensorProperties`, **Line**: 15, **Description**: No whitespaces allowed surrounding docstring text
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/metadata.py`, **Entity**: `TensorProperties`, **Line**: 15, **Description**: First line should end with a period (not '`')
- **Error Code**: **D200**, **File**: `torch/distributed/_shard/sharded_tensor/metadata.py`, **Entity**: `ShardedTensorMetadata`, **Line**: 72, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/metadata.py`, **Entity**: `ShardedTensorMetadata`, **Line**: 72, **Description**: First line should end with a period (not '`')
- **Error Code**: **D204**, **File**: `torch/distributed/_shard/sharded_tensor/shard.py`, **Entity**: `Shard`, **Line**: 11, **Description**: 1 blank line required after class docstring (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/shard.py`, **Entity**: `Shard`, **Line**: 11, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/shard.py`, **Entity**: `Shard`, **Line**: 11, **Description**: First line should end with a period (not 'o')
- **Error Code**: **D401**, **File**: `torch/distributed/_shard/sharded_tensor/shard.py`, **Entity**: `from_tensor_and_offsets`, **Line**: 42, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/reshard.py`, **Entity**: `build_reshard_metadata`, **Line**: 52, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/reshard.py`, **Entity**: `reshuffle_local_shard`, **Line**: 94, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/reshard.py`, **Entity**: `reshuffle_local_shard`, **Line**: 94, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D205**, **File**: `torch/distributed/_shard/sharded_tensor/reshard.py`, **Entity**: `reshard_local_shard`, **Line**: 161, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_shard/sharded_tensor/reshard.py`, **Entity**: `reshard_local_shard`, **Line**: 161, **Description**: First line should end with a period (not 's')

cc @carljparker