class_docstr: Creates an object used for performing lineage queries.
class_docstr_tok: ["Creates","an","object","used","for","performing","lineage","queries","."]
docstr: Perform a lineage query.
  
  Args:
      start_arns (List[str]): A list of ARNs that will be used as the starting point
          for the query.
      direction (LineageQueryDirectionEnum, optional): The direction of the query.
      include_edges (bool, optional): If true, return edges in addition to vertices.
      query_filter (LineageQueryFilter, optional): The query filter.
  
  Returns:
      LineageQueryResult: The lineage query result.
docstr_tok: ["Perform","a","lineage","query",".","Args",":","start_arns","(","List","[","str","]",")",":","A","list","of","ARNs","that","will","be","used","as","the","starting","point","for","the","query",".","direction","(","LineageQueryDirectionEnum",",","optional",")",":","The","direction","of","the","query",".","include_edges","(","bool",",","optional",")",":","If","true",",","return","edges","in","addition","to","vertices",".","query_filter","(","LineageQueryFilter",",","optional",")",":","The","query","filter",".","Returns",":","LineageQueryResult",":","The","lineage","query","result","."]
code: def query(
      self,
      start_arns: List[str],
      direction: LineageQueryDirectionEnum = LineageQueryDirectionEnum.BOTH,
      include_edges: bool = True,
      query_filter: LineageFilter = None,
      max_depth: int = 10,
  ) -> LineageQueryResult:
      """Perform a lineage query.
  
      Args:
          start_arns (List[str]): A list of ARNs that will be used as the starting point
              for the query.
          direction (LineageQueryDirectionEnum, optional): The direction of the query.
          include_edges (bool, optional): If true, return edges in addition to vertices.
          query_filter (LineageQueryFilter, optional): The query filter.
  
      Returns:
          LineageQueryResult: The lineage query result.
      """
      query_response = self._session.sagemaker_client.query_lineage(
          StartArns=start_arns,
          Direction=direction.value,
          IncludeEdges=include_edges,
          Filters=query_filter._to_request_dict()
          if query_filter
          else {},
          MaxDepth=max_depth,
      )
      # create query result for startarn info
      query_result = LineageQueryResult(startarn=start_arns)
      query_response = self._convert_api_response(
          query_response, query_result
      )
      query_response = self._collapse_cross_account_artifacts(
          query_response
      )
  
      return query_response
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from enum import Enum
  from typing import Any, Optional, Union, List, Dict
  from json import dumps
  from re import sub, search
  from sagemaker.utils import get_module
  from sagemaker.lineage._utils import get_resource_name_from_arn
label_desc: Use image node_id 8 for calling the LineageQuery obj's underlying member method code with example usage: obj.query(start_arns, direction, include_edges, query_filter, max_depth) and returns: query_response