class_docstr: Handles artifacts associated with a Run via URIs of the form
    `runs:/<run_id>/run-relative/path/to/artifact`.
  It is a light wrapper that resolves the artifact path to an absolute URI then instantiates
  and uses the artifact repository for that URI.
  
  The relative path part of ``artifact_uri`` is expected to be in posixpath format, so Windows
  users should take special care when constructing the URI.
class_docstr_tok: ["Handles","artifacts","associated","with","a","Run","via","URIs","of","the","form","`","runs",":","\/","<","run_id",">","\/run-relative\/path\/to\/artifact","`",".","It","is","a","light","wrapper","that","resolves","the","artifact","path","to","an","absolute","URI","then","instantiates","and","uses","the","artifact","repository","for","that","URI",".","The","relative","path","part","of","``","artifact_uri","``","is","expected","to","be","in","posixpath","format",",","so","Windows","users","should","take","special","care","when","constructing","the","URI","."]
docstr: Log the files in the specified local directory as artifacts, optionally taking
  an ``artifact_path`` to place them in within the run's artifacts.
  
  :param local_dir: Directory of local artifacts to log
  :param artifact_path: Directory within the run's artifact directory in which to log the
                        artifacts
docstr_tok: ["Log","the","files","in","the","specified","local","directory","as","artifacts",",","optionally","taking","an","``","artifact_path","``","to","place","them","in","within","the","run","'s","artifacts",".",":","param","local_dir",":","Directory","of","local","artifacts","to","log",":","param","artifact_path",":","Directory","within","the","run","'s","artifact","directory","in","which","to","log","the","artifacts"]
code: def log_artifacts(self, local_dir, artifact_path=None):
      """
      Log the files in the specified local directory as artifacts, optionally taking
      an ``artifact_path`` to place them in within the run's artifacts.
  
      :param local_dir: Directory of local artifacts to log
      :param artifact_path: Directory within the run's artifact directory in which to log the
                            artifacts
      """
      self.repo.log_artifacts(local_dir, artifact_path)
  
file_path: mlflow/mlflow/store/artifact/runs_artifact_repo.py
imports: import urllib.parse
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repo import ArtifactRepository
  from mlflow.utils.uri import add_databricks_profile_info_to_artifact_uri, get_databricks_profile_uri_from_artifact_uri
label_desc: Use image node_id 6 for calling the RunsArtifactRepository obj's underlying member method code with example usage: obj.log_artifacts(local_dir, artifact_path) without return types