class_docstr: Creates an object used for performing lineage queries.
class_docstr_tok: ["Creates","an","object","used","for","performing","lineage","queries","."]
docstr: Convert the lineage query API response to its Python representation.
docstr_tok: ["Convert","the","lineage","query","API","response","to","its","Python","representation","."]
code: def _convert_api_response(
      self, response, converted
  ) -> LineageQueryResult:
      """Convert the lineage query API response to its Python representation."""
      converted.edges = [
          self._get_edge(edge) for edge in response["Edges"]
      ]
      converted.vertices = [
          self._get_vertex(vertex) for vertex in response["Vertices"]
      ]
  
      edge_set = set()
      for edge in converted.edges:
          if edge in edge_set:
              converted.edges.remove(edge)
          edge_set.add(edge)
  
      vertex_set = set()
      for vertex in converted.vertices:
          if vertex in vertex_set:
              converted.vertices.remove(vertex)
          vertex_set.add(vertex)
  
      return converted
  
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 4 for calling the LineageQuery obj's underlying member method code with example usage: obj._convert_api_response(response, converted) and returns: converted