Repository: pytorch
Issue: Fix docstring errors in _guards.py, _ops.py, _jit_internal.py, functional.py, _tensor_str.py, library.py
Labels: module: docs,triaged,medium,topic: not user facing,docathon-h1-2024

Please fix the following issues. To test locally, run: 
 ```
pydocstyle path-to-file --count
```
Run this command before and after fixing the errors. This command prints out the number of errors at the end of the output. Paste the output to your PR description with the number before and after. 
- **File**: `torch/functional.py`, **Entity**: `broadcast_tensors`, **Line**: 45, **Description**: First line should end with a period (not 's')
- **File**: `torch/functional.py`, **Entity**: `broadcast_tensors`, **Line**: 45, **Description**: First line should not be the function's "signature"
- **File**: `torch/functional.py`, **Entity**: `broadcast_shapes`, **Line**: 77, **Description**: First line should end with a period (not 'e')
- **File**: `torch/functional.py`, **Entity**: `broadcast_shapes`, **Line**: 77, **Description**: First line should not be the function's "signature"
- **File**: `torch/functional.py`, **Entity**: `split`, **Line**: 142, **Description**: First line should be in imperative mood (perhaps 'Split', not 'Splits')
- **File**: `torch/functional.py`, **Entity**: `einsum`, **Line**: 192, **Description**: First line should end with a period (not 'r')
- **File**: `torch/functional.py`, **Entity**: `einsum`, **Line**: 192, **Description**: First line should not be the function's "signature"
- **File**: `torch/functional.py`, **Entity**: `meshgrid`, **Line**: 397, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/functional.py`, **Entity**: `_unique_impl`, **Line**: 744, **Description**: First line should end with a period (not ']')
- **File**: `torch/functional.py`, **Entity**: `tensordot`, **Line**: 1034, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `cartesian_prod`, **Line**: 1127, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `cartesian_prod`, **Line**: 1127, **Description**: First line should end with a period (not 'o')
- **File**: `torch/functional.py`, **Entity**: `cdist`, **Line**: 1199, **Description**: First line should be in imperative mood (perhaps 'Compute', not 'Computes')
- **File**: `torch/functional.py`, **Entity**: `cdist`, **Line**: 1199, **Description**: No blank lines allowed between a section header and its content ('Example')
- **File**: `torch/functional.py`, **Entity**: `atleast_1d`, **Line**: 1253, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `atleast_1d`, **Line**: 1253, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `atleast_2d`, **Line**: 1289, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `atleast_2d`, **Line**: 1289, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `atleast_3d`, **Line**: 1327, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `atleast_3d`, **Line**: 1327, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `norm`, **Line**: 1409, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/functional.py`, **Entity**: `norm`, **Line**: 1409, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `chain_matmul`, **Line**: 1606, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `chain_matmul`, **Line**: 1606, **Description**: First line should end with a period (not 'd')
- **File**: `torch/functional.py`, **Entity**: `chain_matmul`, **Line**: 1606, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **File**: `torch/functional.py`, **Entity**: `_lu_impl`, **Line**: 1654, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/functional.py`, **Entity**: `_lu_impl`, **Line**: 1654, **Description**: First line should end with a period (not 's')
- **File**: `torch/functional.py`, **Entity**: `_lu_impl`, **Line**: 1654, **Description**: First line should be in imperative mood (perhaps 'Compute', not 'Computes')
- **File**: `torch/library.py`, **Entity**: `Library`, **Line**: 20, **Description**: 1 blank line required after class docstring (found 0)
- **File**: `torch/library.py`, **Entity**: `Library`, **Line**: 20, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/library.py`, **Entity**: `Library`, **Line**: 20, **Description**: First line should end with a period (not 'r')
- **File**: `torch/library.py`, **Entity**: `define`, **Line**: 61, **Description**: Use """triple double quotes""" (found '''-quotes)
- **File**: `torch/library.py`, **Entity**: `define`, **Line**: 61, **Description**: First line should be in imperative mood (perhaps 'Define', not 'Defines')
- **File**: `torch/library.py`, **Entity**: `impl`, **Line**: 82, **Description**: Use """triple double quotes""" (found '''-quotes)
- **File**: `torch/library.py`, **Entity**: `impl`, **Line**: 82, **Description**: First line should be in imperative mood (perhaps 'Register', not 'Registers')
- **File**: `torch/_tensor_str.py`, **Entity**: `set_printoptions`, **Line**: 32, **Description**: First line should end with a period (not 'y')
- **File**: `torch/_tensor_str.py`, **Entity**: `get_printoptions`, **Line**: 98, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_tensor_str.py`, **Entity**: `get_printoptions`, **Line**: 98, **Description**: First line should end with a period (not 't')
- **File**: `torch/_tensor_str.py`, **Entity**: `get_printoptions`, **Line**: 98, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')
- **File**: `torch/_tensor_str.py`, **Entity**: `printoptions`, **Line**: 106, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_tensor_str.py`, **Entity**: `printoptions`, **Line**: 106, **Description**: Multi-line docstring closing quotes should be on a separate line
- **File**: `torch/_tensor_str.py`, **Entity**: `printoptions`, **Line**: 106, **Description**: First line should end with a period (not 'd')
- **File**: `torch/_guards.py`, **Entity**: `weakref_to_str`, **Line**: 168, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_guards.py`, **Entity**: `GlobalContext`, **Line**: 390, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_guards.py`, **Entity**: `detect_fake_mode`, **Line**: 581, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_guards.py`, **Entity**: `detect_fake_mode`, **Line**: 581, **Description**: First line should end with a period (not 'y')
- **File**: `torch/_guards.py`, **Entity**: `detect_fake_mode`, **Line**: 581, **Description**: First line should be in imperative mood (perhaps 'Attempt', not 'Attempts')
- **File**: `torch/_jit_internal.py`, **Entity**: ``, **Line**: 1, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: ``, **Line**: 1, **Description**: First line should end with a period (not 't')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromEnv`, **Line**: 86, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromEnv`, **Line**: 86, **Description**: First line should end with a period (not 'n')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromEnv`, **Line**: 86, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromFrame`, **Line**: 153, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromFrame`, **Line**: 153, **Description**: First line should end with a period (not ',')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromFrame`, **Line**: 153, **Description**: First line should be in imperative mood (perhaps 'Create', not 'Creates')
- **File**: `torch/_jit_internal.py`, **Entity**: `get_closure`, **Line**: 203, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **File**: `torch/_jit_internal.py`, **Entity**: `get_closure`, **Line**: 203, **Description**: First line should end with a period (not 'n')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromClosure`, **Line**: 261, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackFromClosure`, **Line**: 261, **Description**: First line should end with a period (not 'f')
- **File**: `torch/_jit_internal.py`, **Entity**: `get_callable_argument_names`, **Line**: 304, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `get_callable_argument_names`, **Line**: 304, **Description**: First line should be in imperative mood (perhaps 'Get', not 'Gets')
- **File**: `torch/_jit_internal.py`, **Entity**: `get_annotation_str`, **Line**: 335, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `get_annotation_str`, **Line**: 335, **Description**: First line should end with a period (not 'e')
- **File**: `torch/_jit_internal.py`, **Entity**: `get_type_hint_captures`, **Line**: 357, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `get_type_hint_captures`, **Line**: 357, **Description**: First line should end with a period (not 's')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackForClassMethods`, **Line**: 439, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackForClassMethods`, **Line**: 439, **Description**: First line should end with a period (not 'r')
- **File**: `torch/_jit_internal.py`, **Entity**: `createResolutionCallbackForClassMethods`, **Line**: 439, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_jit_internal.py`, **Entity**: `boolean_dispatch`, **Line**: 472, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `FunctionModifiers`, **Line**: 519, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `FunctionModifiers`, **Line**: 519, **Description**: First line should end with a period (not 'd')
- **File**: `torch/_jit_internal.py`, **Entity**: `export`, **Line**: 535, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `export`, **Line**: 535, **Description**: First line should end with a period (not 'a')
- **File**: `torch/_jit_internal.py`, **Entity**: `export`, **Line**: 535, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_jit_internal.py`, **Entity**: `unused`, **Line**: 581, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `unused`, **Line**: 581, **Description**: First line should end with a period (not 'd')
- **File**: `torch/_jit_internal.py`, **Entity**: `unused`, **Line**: 581, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_jit_internal.py`, **Entity**: `ignore`, **Line**: 644, **Description**: No blank lines allowed after function docstring (found 1)
- **File**: `torch/_jit_internal.py`, **Entity**: `ignore`, **Line**: 644, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `ignore`, **Line**: 644, **Description**: First line should end with a period (not 'd')
- **File**: `torch/_jit_internal.py`, **Entity**: `ignore`, **Line**: 644, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_jit_internal.py`, **Entity**: `is_scripting`, **Line**: 1110, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `is_scripting`, **Line**: 1110, **Description**: First line should end with a period (not 's')
- **File**: `torch/_jit_internal.py`, **Entity**: `is_scripting`, **Line**: 1110, **Description**: First line should be in imperative mood; try rephrasing (found 'Function')
- **File**: `torch/_jit_internal.py`, **Entity**: `_extract_tensors`, **Line**: 1484, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_jit_internal.py`, **Entity**: `_extract_tensors`, **Line**: 1484, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **File**: `torch/_ops.py`, **Entity**: `dl_open_guard`, **Line**: 20, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_ops.py`, **Entity**: `dl_open_guard`, **Line**: 20, **Description**: First line should end with a period (not 'a')
- **File**: `torch/_ops.py`, **Entity**: `OperatorBase`, **Line**: 36, **Description**: 1 blank line required between summary line and description (found 0)
- **File**: `torch/_ops.py`, **Entity**: `OperatorBase`, **Line**: 36, **Description**: First line should end with a period (not 'r')
- **File**: `torch/_ops.py`, **Entity**: `load_library`, **Line**: 803, **Description**: First line should be in imperative mood (perhaps 'Load', not 'Loads')

cc @brycebortree @carljparker