code: def _make_artifact_record(
      self, artifact, use_artifact=False
  ) -> pb.Record:
      proto = self.interface._make_artifact(artifact)
      proto.run_id = self.run.run_id()
      proto.project = self.run.project()
      proto.entity = self.run.entity()
      proto.user_created = use_artifact
      proto.use_after_commit = use_artifact
      proto.finalize = True
      for tag in ["latest", "imported"]:
          proto.aliases.append(tag)
      return self.interface._make_record(artifact=proto)
  
imports: import json
  import os
  import queue
  import sys
  from dataclasses import dataclass
  from typing import Any, Dict, Iterable, List, Optional, Tuple
  from unittest.mock import patch
  from google.protobuf.json_format import ParseDict
  from tqdm import tqdm
  import wandb
  from wandb.proto import wandb_internal_pb2
  from wandb.proto import wandb_settings_pb2
  from wandb.proto import wandb_telemetry_pb2
  from wandb.sdk.interface.interface import file_policy_to_enum
  from wandb.sdk.interface.interface_queue import InterfaceQueue
  from wandb.sdk.internal import context
  from wandb.sdk.internal.sender import SendManager
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.util import cast_dictlike_to_dict, coalesce
label_desc: Use image node_id 8 for calling the RecordMaker obj's underlying member method code with example usage: obj._make_artifact_record(artifact, use_artifact) and returns: self