class_docstr: An artifact manages an untarred model artifact of a training job. More
  precisely, it manages a local temporary directory which contains all files
  stored as artifacts.
  
  The artifact ought to be used within a `with` statement. Upon exit, the temporary directory is
  cleaned up.
  
  Attributes:
      path: The path of the artifact's managed directory.
class_docstr_tok: ["An","artifact","manages","an","untarred","model","artifact","of","a","training","job",".","More","precisely",",","it","manages","a","local","temporary","directory","which","contains","all","files","stored","as","artifacts",".","The","artifact","ought","to","be","used","within","a","`","with","`","statement",".","Upon","exit",",","the","temporary","directory","is","cleaned","up",".","Attributes",":","path",":","The","path","of","the","artifact","'s","managed","directory","."]
code: def __enter__(self) -> Artifact:
      return self
  
imports: from __future__ import annotations
  import datetime
  import json
  import logging
  import re
  import shutil
  import tempfile
  import time
  from collections import Counter
  from functools import cached_property, lru_cache
  from pathlib import Path
  from typing import Any, Callable, cast, Dict, Iterator, List, Tuple, Union
  import boto3
  import numpy
  from botocore.exceptions import ClientError
  from .session import default_session
label_desc: Use image node_id 2 for calling the Artifact obj's underlying member method code with example usage: obj.__enter__() and returns: self