code: def az_fs():
      if should_skip(AZ_URI):
          yield [None] * NUM_ATR_FS
          return
  
      from azure.storage.blob import ContainerClient
  
      monkeypatch = pytest.MonkeyPatch()
      container_name = os.environ.get("AZ_TEST_CONTAINER")
      account = None
      client = None
  
      # This means we are running against emulator.
      if container_name is None:
          monkeypatch.setenv("TF_AZURE_USE_DEV_STORAGE", "1")
          container_name = f"tf-io-bucket-az-{int(time.time())}"
          account = "devstoreaccount1"
          conn_str = (
              "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;"
              "AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq"
              "/K1SZFPTOtr/KBHBeksoGMGw==;"
              "BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
          )
          client = ContainerClient.from_connection_string(
              conn_str, container_name
          )
          client.create_container()
      else:
          # TODO(vnvo2409): Implement for testing against production scenario
          pass
  
      client.upload_blob(ROOT_PREFIX, b"")
  
      def parse(path):
          res = urlparse(path, scheme=AZ_URI, allow_fragments=False)
          return res.path.split("/", 2)[2]
  
      def path_to(*args):
          return f"{AZ_URI}://{account}/{container_name}/{posixpath.join(ROOT_PREFIX, *args)}"
  
      def read(path):
          key_name = parse(path)
          return client.download_blob(key_name).content_as_bytes()
  
      def write(path, body):
          key_name = parse(path)
          client.upload_blob(key_name, body)
  
      def mkdirs(path):
          if path[-1] == "/":
              write(path, b"")
  
      yield path_to, read, write, mkdirs, posixpath.join, (
          client,
          container_name,
          account,
      )
      monkeypatch.undo()
  
imports: import functools
  import os
  import posixpath
  import random
  import socket
  import sys
  import time
  from urllib.parse import urlparse
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 5 for calling a global function with example usage: az_fs() and returns: res, AZ_URI, str, account, str, container_name, str, posixpath, client