code: def get_uri(dir_name):
      
      fullpath = os.path.abspath(dir_name)
      try:
          hostname = socket.gethostbyaddr(socket.gethostname())[0]
      except:
          hostname = socket.gethostname()
      return "{}:{}".format(hostname, fullpath)
docs: Returns the URI path for a directory. This allows files hosted on
      different file servers to have distinct locations.
  
      Args:
          dir_name:
              A directory name.
  
      Returns:
          Full URI path, e.g., fileserver.host.com:/full/path/of/dir_name.