code: def parse_name(name):
    
    bucket = None
    item = None
    m = re.match(_STORAGE_NAME, name)
    if m:
      # We want to return the last two groups as first group is the optional 'gs://'
      bucket = m.group(1)
      item = m.group(2)
      if item is not None:
        item = item[1:]  # Strip '/'
    else:
      m = re.match('(' + _OBJECT_NAME + ')', name)
      if m:
        item = m.group(1)
    return bucket, item
docs: Parse a gs:// URL into the bucket and item names.
  
    Args:
      name: a GCS URL of the form gs://bucket or gs://bucket/item
    Returns:
      The bucket name (with no gs:// prefix), and the item name if present. If the name
      could not be parsed returns None for both.