_exists function error

from solidity:
DeclarationError: Undeclared identifier.
–> CryptoR1155.sol:48:13:
|
48 | require(_exists(tokenId), “ERC1155Metadata: totalSupply query for nonexistent token”);
| ^^^^^^^

It says that _exists function is not defined?

yes this the error but _exists is an internal function

the function that it is using it is also internal?