class_docstr: Creates an object used for performing lineage queries.
class_docstr_tok: ["Creates","an","object","used","for","performing","lineage","queries","."]
docstr: Replace the duplicate arn with arn in edges list.
docstr_tok: ["Replace","the","duplicate","arn","with","arn","in","edges","list","."]
code: def _update_cross_account_edge(self, edges, arn, duplicate_arn):
      """Replace the duplicate arn with arn in edges list."""
      for idx, e in enumerate(edges):
          if e.destination_arn == duplicate_arn:
              edges[idx].destination_arn = arn
          elif e.source_arn == duplicate_arn:
              edges[idx].source_arn = arn
  
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 6 for calling the LineageQuery obj's underlying member method code with example usage: obj._update_cross_account_edge(edges, arn, duplicate_arn) without return types