docstr: Returns the SARIF representation of this location.
docstr_tok: ["Returns","the","SARIF","representation","of","this","location","."]
code: def sarif(self) -> sarif.Location:
      """Returns the SARIF representation of this location."""
      return sarif.Location(
          physical_location=sarif.PhysicalLocation(
              artifact_location=sarif.ArtifactLocation(uri=self.uri),
              region=sarif.Region(
                  start_line=self.line,
                  start_column=self.start_column,
                  end_column=self.end_column,
                  snippet=sarif.ArtifactContent(text=self.snippet),
              ),
          ),
          message=sarif.Message(text=self.message)
          if self.message is not None
          else None,
      )
  
imports: from __future__ import annotations
  import dataclasses
  import enum
  import logging
  from typing import FrozenSet, List, Mapping, Optional, Sequence, Tuple
  from torch.onnx._internal.diagnostics.infra import formatter, sarif
label_desc: Use image node_id 1 for calling the Location obj's underlying member method code with example usage: obj.sarif() and returns: sarif