docstr: Build the required import path for tests in this module.
  
  Parameters
  ----------
  klass : str
      Class name of object in module.
  func : str
      Function name of object in module.
  
  Returns
  -------
  str
      Import path of specified object in this module
docstr_tok: ["Build","the","required","import","path","for","tests","in","this","module",".","Parameters","--","--","--","--","--","klass",":","str","Class","name","of","object","in","module",".","func",":","str","Function","name","of","object","in","module",".","Returns","--","--","--","-","str","Import","path","of","specified","object","in","this","module"]
code: def _import_path(self, klass=None, func=None):
      """
      Build the required import path for tests in this module.
  
      Parameters
      ----------
      klass : str
          Class name of object in module.
      func : str
          Function name of object in module.
  
      Returns
      -------
      str
          Import path of specified object in this module
      """
      base_path = "scripts.tests.test_validate_docstrings"
  
      if klass:
          base_path = f"{base_path}.{klass}"
  
      if func:
          base_path = f"{base_path}.{func}"
  
      return base_path
  
imports: import io
  import textwrap
  import pytest
  from scripts import validate_docstrings
label_desc: Use image node_id 1 for calling the TestValidator obj's underlying member method code with example usage: obj._import_path(klass, func) and returns: base_path