code: def get_point_margin(row, score, opponent_score):
      r"""Get the point margin for a game.
  
      Parameters
      ----------
      row : pandas.Series
          The row of a game.
      score : int
          The score for one team.
      opponent_score : int
          The score for the other team.
  
      Returns
      -------
      point_margin : int
          The resulting point margin (0 if NaN).
  
      """
      point_margin = 0
      nans = math.isnan(row[score]) or math.isnan(row[opponent_score])
      if not nans:
          point_margin = row[score] - row[opponent_score]
      return point_margin
  
imports: import warnings
  from alphapy.__main__ import main_pipeline
  from alphapy.frame import read_frame
  from alphapy.frame import write_frame
  from alphapy.globals import ModelType
  from alphapy.globals import Partition, datasets
  from alphapy.globals import PSEP, SSEP, USEP
  from alphapy.globals import WILDCARD
  from alphapy.model import get_model_config
  from alphapy.model import Model
  from alphapy.space import Space
  from alphapy.utilities import valid_date
  import argparse
  import datetime
  from itertools import groupby
  import logging
  import math
  import numpy
  import os
  import pandas
  import sys
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: get_point_margin(row, score, opponent_score) and returns: point_margin