code: def _make_automdl_options(maxorder, maxdiff, diff):
      options = "\n"
      options += f"maxorder = ({maxorder[0]} {maxorder[1]})\n"
      if maxdiff is not None:  # maxdiff always takes precedence
          options += f"maxdiff = ({maxdiff[0]} {maxdiff[1]})\n"
      else:
          options += f"diff = ({diff[0]} {diff[1]})\n"
      return options
  
imports: from statsmodels.compat.pandas import deprecate_kwarg
  import os
  import subprocess
  import tempfile
  import re
  from warnings import warn
  import pandas
  from statsmodels.tools.tools import Bunch
  from statsmodels.tools.sm_exceptions import X13NotFoundError, IOWarning, X13Error, X13Warning
label_desc: Use image node_id 5 for calling a global function with example usage: _make_automdl_options(maxorder, maxdiff, diff) and returns: options