class_docstr: Name dynamic instrument filter
  
  Filter the instruments based on a regulated name format.
  
  A name rule regular expression is required.
class_docstr_tok: ["Name","dynamic","instrument","filter","Filter","the","instruments","based","on","a","regulated","name","format",".","A","name","rule","regular","expression","is","required","."]
code: def to_config(self):
      return {
          "filter_type": "NameDFilter",
          "name_rule_re": self.name_rule_re,
          "filter_start_time": str(self.filter_start_time)
          if self.filter_start_time
          else self.filter_start_time,
          "filter_end_time": str(self.filter_end_time)
          if self.filter_end_time
          else self.filter_end_time,
      }
  
imports: from __future__ import print_function
  from abc import abstractmethod
  import re
  import pandas
  import numpy
  import abc
  from .data import Cal, DatasetD
label_desc: Use image node_id 4 for calling the NameDFilter obj's underlying member method code with example usage: obj.to_config() and returns: dict