code: def _option_required_str(x):
      if not x:
          raise ValueError("value is required")
      return str(x)
  
file_path: pyts/doc/pytsdtwdoc.py
imports: import sys
  import pydoc
  import inspect
  import textwrap
  import warnings
  from packaging.version import parse
  from numpydoc.numpydoc import mangle_docstrings
  from docutils.statemachine import ViewList
  from sphinx.domains.python import PythonDomain
  import scipy
label_desc: Use image node_id 2 for calling a global function with example usage: _option_required_str(x) and returns: str