class_docstr: Create multi-modal instances given the path to triples.
class_docstr_tok: ["Create","multi-modal","instances","given","the","path","to","triples","."]
code: def clone_and_exchange_triples(
      self,
      mapped_triples: MappedTriples,
      extra_metadata: Optional[Dict[str, Any]] = None,
      keep_metadata: bool = True,
      create_inverse_triples: Optional[bool] = None,
  ) -> "TriplesNumericLiteralsFactory":  # noqa: D102
      if create_inverse_triples is None:
          create_inverse_triples = self.create_inverse_triples
      return TriplesNumericLiteralsFactory(
          mapped_triples=mapped_triples,
          entity_to_id=self.entity_to_id,
          relation_to_id=self.relation_to_id,
          create_inverse_triples=create_inverse_triples,
          metadata={
              **(extra_metadata or {}),
              **(self.metadata if keep_metadata else {}),  # type: ignore
          },
          numeric_literals=self.numeric_literals,
          literals_to_id=self.literals_to_id,
      )
  
imports: import logging
  import pathlib
  from typing import Any, ClassVar, Dict, Iterable, Mapping, MutableMapping, Optional, TextIO, Tuple, Union
  import numpy
  import pandas
  import torch
  from .triples_factory import TriplesFactory
  from .utils import load_triples
  from ..typing import EntityMapping, LabeledTriples, MappedTriples
label_desc: Use image node_id 7 for calling the TriplesNumericLiteralsFactory obj's underlying member method code with example usage: obj.clone_and_exchange_triples(mapped_triples, extra_metadata, keep_metadata, create_inverse_triples) and returns: TriplesNumericLiteralsFactory