def METHOD_NAME(stream):
    """
    https://github.com/airbytehq/airbyte/pull/26283
    It's not a very elegant way to get source_defined_primary_key inside the stream.
    It's used only for a smooth transition to the new primary key.
    As soon as the transition will complete we can remove this function.
    """
    if len(sys.argv) > 1 and "read" == sys.argv[1]:
        parser = argparse.ArgumentParser()
        subparsers = parser.add_subparsers()
        read_subparser = subparsers.add_parser("read")
        read_subparser.add_argument("--catalog", type=str, required=True)
        args, unknown = parser.parse_known_args()
        catalog = json.loads(open(args.catalog).read())
        res = {s["stream"]["name"]: s["stream"].get("source_defined_primary_key") for s in catalog["streams"]}
        return res.get(stream)