class_docstr: A AWS S3 obtainer.
  
  download -> extract -> move
  
  Args:
      files (list[dict]): A list of file information.
      cache_path (str): The path to cache the downloaded files.
      data_root (str): The root path of the dataset. It is usually set auto-
          matically and users do not need to set it manually in config file
          in most cases.
      task (str): The task of the dataset. It is usually set automatically
          and users do not need to set it manually in config file
          in most cases.
class_docstr_tok: ["A","AWS","S3","obtainer",".","download","-",">","extract","-",">","move","Args",":","files","(","list","[","dict","]",")",":","A","list","of","file","information",".","cache_path","(","str",")",":","The","path","to","cache","the","downloaded","files",".","data_root","(","str",")",":","The","root","path","of","the","dataset",".","It","is","usually","set","auto-","matically","and","users","do","not","need","to","set","it","manually","in","config","file","in","most","cases",".","task","(","str",")",":","The","task","of","the","dataset",".","It","is","usually","set","automatically","and","users","do","not","need","to","set","it","manually","in","config","file","in","most","cases","."]
docstr: This is a helper function that given an s3 path such that the path
  is of the form: bucket/key It will return the bucket and the key
  represented by the s3 path.
  
  Args:
      s3_path (str): The AWS s3 path.
docstr_tok: ["This","is","a","helper","function","that","given","an","s3","path","such","that","the","path","is","of","the","form",":","bucket\/key","It","will","return","the","bucket","and","the","key","represented","by","the","s3","path",".","Args",":","s3_path","(","str",")",":","The","AWS","s3","path","."]
code: def find_bucket_key(self, s3_path: str):
      """This is a helper function that given an s3 path such that the path
      is of the form: bucket/key It will return the bucket and the key
      represented by the s3 path.
  
      Args:
          s3_path (str): The AWS s3 path.
      """
      s3_components = s3_path.split("/", 1)
      bucket = s3_components[0]
      s3_key = ""
      if len(s3_components) > 1:
          s3_key = s3_components[1]
      return bucket, s3_key
  
file_path: mmocr/mmocr/datasets/preparers/obtainers/aws_s3_obtainer.py
imports: import os.path
  import ssl
  from typing import Dict, List, Optional
  from mmengine import mkdir_or_exist
  from mmocr.registry import DATA_OBTAINERS
  from .naive_data_obtainer import NaiveDataObtainer
label_desc: Use image node_id 2 for calling the AWSS3Obtainer obj's underlying member method code with example usage: obj.find_bucket_key(s3_path) and returns: bucket,  s3_key