code: def _is_mod_public(modname):
      split_strs = modname.split(".")
      for elem in split_strs:
          if elem.startswith("_"):
              return False
      return True
  
file_path: pytorch/test/test_public_bindings.py
imports: from torch.testing._internal.common_utils import TestCase, run_tests, IS_JETSON, IS_WINDOWS
  import pkgutil
  import torch
  import importlib
  from typing import Callable
  import inspect
  import json
  import os
  import unittest
  from importlib import import_module
label_desc: Use image node_id 2 for calling the TestPublicBindings obj's underlying member method code with example usage: obj._is_mod_public(modname) and returns: True, False