docstr: Get the credentials for an Azure Blob Storage container from the config
  :param uri: URI of container or blob
  :return: AzureContainerConfig: container config
docstr_tok: ["Get","the","credentials","for","an","Azure","Blob","Storage","container","from","the","config",":","param","uri",":","URI","of","container","or","blob",":","return",":","AzureContainerConfig",":","container","config"]
code: def get_config_by_uri(self, uri):
      """
      Get the credentials for an Azure Blob Storage container from the config
      :param uri: URI of container or blob
      :return: AzureContainerConfig: container config
      """
      f = furl.furl(uri)
      account_name = f.host.partition(".")[0]
  
      if not f.path.segments:
          raise ValueError(
              "URI {} is missing a container name (expected "
              "[https/azure]://<account-name>.../<container-name>)".format(
                  uri
              )
          )
  
      container = f.path.segments[0]
  
      config = copy(self.get_config(account_name, container))
  
      if config and not config.container_name:
          config.container_name = container
  
      return config
  
imports: import abc
  import warnings
  from copy import copy
  from operator import itemgetter
  from os import getenv
  import furl
  import six
  from attr import attrib, attrs
label_desc: Use image node_id 3 for calling the AzureContainerConfigurations obj's underlying member method code with example usage: obj.get_config_by_uri(uri) and returns: config