def media_info_gql(self, media_pk: str) -> Media:
        """
        Get Media from PK by Public Graphql API

        Parameters
        ----------
        media_pk: str
            Unique identifier of the media

        Returns
        -------
        Media
            An object of Media type
        """
        media_pk = self.media_pk(media_pk)
        shortcode = self.media_code_from_pk(media_pk)
        """Use Client.media_info
        """
        variables = {
            "shortcode": shortcode,
            "child_comment_count": 3,
            "fetch_comment_count": 40,
            "parent_comment_count": 24,
            "has_threaded_comments": False,
        }
        data = self.public_graphql_request(
            variables, query_hash="477b65a610463740ccdb83135b2014db"
        )
        if not data.get("shortcode_media"):
            raise MediaNotFound(media_pk=media_pk, **data)
        if data["shortcode_media"]["location"] and self.authorization:
            data["shortcode_media"]["location"] = self.location_complete(
                extract_location(data["shortcode_media"]["location"])
            ).dict()
        return extract_media_gql(data["shortcode_media"])

        Get Media from PK by Public Graphql API

        Parameters
        ----------
        media_pk: str
            Unique identifier of the media

        Returns
        -------
        Media
            An object of Media type
        
instagrapi/mixins/media.py