code: def _deprecated(old_method, new_method=None):
      if new_method is None:
          # The method name stayed the same.
          new_method = old_method
      warnings.warn(
          "plotly.tools.FigureFactory.{} is deprecated. "
          "Use plotly.figure_factory.{}".format(old_method, new_method)
      )
  
imports: from __future__ import absolute_import
  import json
  import warnings
  import six
  import re
  import os
  from plotly import exceptions, optional_imports
  from plotly.files import PLOTLY_DIR
label_desc: Use image node_id 1 for calling the FigureFactory obj's underlying member method code with example usage: obj._deprecated(old_method, new_method) without return types