docstr: Gets the size of the artifact content (in bytes) for the name
docstr_tok: ["Gets","the","size","of","the","artifact","content","(","in","bytes",")","for","the","name"]
code: def get_artifact_size(
      self,
      ds_type,
      ds_root,
      attempt,
      flow_name,
      run_id,
      step_name,
      task_id,
      name,
  ):
      """Gets the size of the artifact content (in bytes) for the name"""
      task_ds = self._get_task_datastore(
          ds_type,
          ds_root,
          flow_name,
          run_id,
          step_name,
          task_id,
          attempt,
      )
  
      _, size = next(task_ds.get_artifact_sizes([name]))
      return size
  
imports: from __future__ import print_function
  from collections import OrderedDict
  import os
  import sys
  import time
  from tempfile import NamedTemporaryFile
  from hashlib import sha1
  from metaflow.datastore import FlowDataStore
  from metaflow.datastore.content_addressed_store import BlobCache
  from metaflow.exception import MetaflowException
  from metaflow.metaflow_config import CLIENT_CACHE_PATH, CLIENT_CACHE_MAX_SIZE, CLIENT_CACHE_MAX_FLOWDATASTORE_COUNT, CLIENT_CACHE_MAX_TASKDATASTORE_COUNT
  from metaflow.plugins import DATASTORES
label_desc: Use image node_id 9 for calling the FileCache obj's underlying member method code with example usage: obj.get_artifact_size(ds_type, ds_root, attempt, flow_name, run_id, step_name, task_id, name) and returns: size