    async def _getxattr(self, path, attr_name, **kwargs):
        """Get an attribute from the metadata.

        Examples
        --------
        >>> mys3fs.getxattr('mykey', 'attribute_1')  # doctest: +SKIP
        'value_1'
        """
        attr_name = attr_name.replace("_", "-")
        xattr = await self._metadata(path, **kwargs)
        if attr_name in xattr:
            return xattr[attr_name]
        return None
Get an attribute from the metadata.

Examples
--------
>>> mys3fs.getxattr('mykey', 'attribute_1')  # doctest: +SKIP
'value_1'
s3fs/core.py